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() {