From 36c0b3d2f15af60ebd85f23a7505518d2d51839f Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Fri, 14 May 2021 16:06:26 +0100 Subject: [PATCH] Fix directory creation problems --- ue4-datasync.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }