How to Sync and Remove using C#
Hello,
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:
https://winscp.net/eng/docs/library_example_delete_after_successful_download
Any suggestions would be appreciated.
Thanks,
Brian
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:
https://winscp.net/eng/docs/library_example_delete_after_successful_download
Any suggestions would be appreciated.
Thanks,
Brian