From 03479c2e2f80f6bedffc35cbccdd16ee0a74a331 Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Fri, 14 May 2021 16:23:45 +0100 Subject: [PATCH] Fix creating local dirs on pull --- ue4-datasync.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } }