From eb4553814fb414c34d00207e6654b04e7a62a59f Mon Sep 17 00:00:00 2001 From: Victor Chelaru Date: Sat, 30 Mar 2024 17:58:16 -0600 Subject: [PATCH] Added Diagnostics. --- .../Processes/UploadFilesToFrbServer.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/FRBDK/BuildServerUploader/BuildServerUploaderConsole/Processes/UploadFilesToFrbServer.cs b/FRBDK/BuildServerUploader/BuildServerUploaderConsole/Processes/UploadFilesToFrbServer.cs index 17cc763d1..ace0bfe65 100644 --- a/FRBDK/BuildServerUploader/BuildServerUploaderConsole/Processes/UploadFilesToFrbServer.cs +++ b/FRBDK/BuildServerUploader/BuildServerUploaderConsole/Processes/UploadFilesToFrbServer.cs @@ -126,6 +126,7 @@ public UploadFilesToFrbServer(IResults results, UploadType uploadType, string us public override void ExecuteStep() { + Results.WriteMessage($"Uploading {uploadType}"); if(uploadType == UploadType.Entire) { UploadGumFiles(); @@ -208,12 +209,17 @@ private static void UploadTemplateFiles(string _ftpFolder, IResults Results) { string templateDirectory = DirectoryHelper.ReleaseDirectory + @"ZippedTemplates/"; + + var zippedTemplateFiles = Directory.GetFiles(templateDirectory, "*.zip").ToArray(); + + Results.WriteMessage($"Found {zippedTemplateFiles.Length} files to upload"); + using (var client = SftpManager.GetClient(host, Username, Password)) { client.Connect(); - foreach (var file in Directory.GetFiles(templateDirectory, "*.zip")) + foreach (var file in zippedTemplateFiles) { var fileName = FileManager.RemovePath(file);