refactor(controller): copy to server now deletes existing .zip to reduce issues

This commit is contained in:
2025-09-10 12:41:52 -05:00
parent 6c32cc23cd
commit 5ad5e868b6

View File

@@ -40,6 +40,9 @@ try {
New-Item -ItemType Directory -Path '%s' -Force | Out-Null New-Item -ItemType Directory -Path '%s' -Force | Out-Null
} }
# Remove any .zip files in the destination folder before copying
Get-ChildItem -Path "z:\" -Filter *.zip -File -ErrorAction SilentlyContinue | Remove-Item -Force -ErrorAction SilentlyContinue
Write-Host "Starting to copy files to the server" Write-Host "Starting to copy files to the server"
Copy-Item -Path '%s' -Destination "z:\" -Force Copy-Item -Path '%s' -Destination "z:\" -Force