Skip to content

Commit

Permalink
#3262: Fix "access denied" error when copying subfolders (#3263)
Browse files Browse the repository at this point in the history
Should fix #3262

Co-authored-by: Thomas Torggler <thomas.torggler@eos-solutions.it>
  • Loading branch information
hemisphera and Thomas-Torggler-EOS committed Dec 5, 2023
1 parent 0bc7859 commit 0bb4fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Misc/Copy-ItemToBcContainer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0bb4fd7

Please sign in to comment.