Skip to content

Commit

Permalink
Removed unused file
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Mar 28, 2024
1 parent b856db6 commit 70898b7
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 70898b7

Please sign in to comment.