From 70898b7a7c7b161f925766e51df5365621d28faa Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 27 Mar 2024 22:37:10 -0600 Subject: [PATCH] Removed unused file --- .../Processes/UploadFilesToFrbServer.cs | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/FRBDK/BuildServerUploader/BuildServerUploaderConsole/Processes/UploadFilesToFrbServer.cs b/FRBDK/BuildServerUploader/BuildServerUploaderConsole/Processes/UploadFilesToFrbServer.cs index a48db2e54..87fa4036e 100644 --- a/FRBDK/BuildServerUploader/BuildServerUploaderConsole/Processes/UploadFilesToFrbServer.cs +++ b/FRBDK/BuildServerUploader/BuildServerUploaderConsole/Processes/UploadFilesToFrbServer.cs @@ -122,27 +122,6 @@ public UploadFilesToFrbServer(IResults results, UploadType uploadType, string us } - private void DeleteDirectory(string relativeDirectory) - { - //Get files - var files = SftpManager.GetList(host, relativeDirectory, Username, Password); - - //Loop through files - foreach (var fileStruct in files) - { - //If directory, need to delete sub directories - if (fileStruct.IsDirectory) - { - DeleteDirectory(relativeDirectory + "/" + fileStruct.Name); - } - else - { - SftpManager.DeleteRemoteFile(host, fileStruct.Name, Username, Password); - } - } - - SftpManager.DeleteRemoteDirectory(host, relativeDirectory, Username, Password); - } public override void ExecuteStep() {