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