From 5ad5e868b6c8d9e7efb5e819afe05427abe5ae99 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 10 Sep 2025 12:41:52 -0500 Subject: [PATCH] refactor(controller): copy to server now deletes existing .zip to reduce issues --- controller/copy_build.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/copy_build.go b/controller/copy_build.go index 20b090e..0423716 100644 --- a/controller/copy_build.go +++ b/controller/copy_build.go @@ -40,6 +40,9 @@ try { 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" Copy-Item -Path '%s' -Destination "z:\" -Force