I am trying to find an example of removing files after downloading them using C#.
I have looked at the powershell example and cannot seem to get it to work in C#.
Using session.RemoveFiles works - however if files are being added to the source directory during the download they end up being deleted and not downloaded.
Basically I'm looking to mirror what is done in the powershell example shown here:
Any suggestions would be appreciated.