From 0bb4fd7db9b12c68163d6530f12b9c583dfc1947 Mon Sep 17 00:00:00 2001 From: The Dumb Date: Tue, 5 Dec 2023 09:38:10 +0100 Subject: [PATCH] #3262: Fix "access denied" error when copying subfolders (#3263) Should fix #3262 Co-authored-by: Thomas Torggler --- Misc/Copy-ItemToBcContainer.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/Copy-ItemToBcContainer.ps1 b/Misc/Copy-ItemToBcContainer.ps1 index 5a1a4eb77..50fe15b4b 100644 --- a/Misc/Copy-ItemToBcContainer.ps1 +++ b/Misc/Copy-ItemToBcContainer.ps1 @@ -38,7 +38,7 @@ function Copy-ItemToBcContainer { if ([IO.Directory]::Exists($tempItem)) { # item to copy is a folder [IO.Directory]::CreateDirectory($containerPath) | Out-Null - Get-ChildItem $tempItem | Move-Item -Destination $containerPath -Force + Get-ChildItem $tempItem | Copy-Item -Destination $containerPath -Force -Recurse } else { # item to copy is a file