diff --git a/ue4-datasync.ps1 b/ue4-datasync.ps1 index 95e8b10..6531819 100644 --- a/ue4-datasync.ps1 +++ b/ue4-datasync.ps1 @@ -279,7 +279,8 @@ try { Write-Output "Would have pulled: $filename ($oid)" } else { Write-Output "Pull: $filename ($oid)" - New-Item -ItemType Directory $subdir -Force > $null + $subdir = [System.IO.Path]::GetDirectoryName($localbuiltdata) + New-Item -ItemType Directory -Path $subdir -Force > $null Copy-Item $remotebuiltdata $localbuiltdata } }