C# session.GetFiles "remove" parameter not working?
This may be a problem on the server end rather than with WinSCP (as detailed below) but I'd like to stop here.
OS: Windows Server 2008
WinSCP: v2.0.50727
App Coded in VS2012, 32 bit
Summary: I have to pick up a file via SFTP that is placed there every 30 minutes. I would like to leave the copy there rather than remove it. No matter which way I set the flag on session.GetFiles it deletes.
Oddness: If I use the same code to pick up a copy of the file _that I placed there_ the copy deletes or does not delete appropriately <= makes me think the rights on the files are different, but they appear to be the same in both the log files and the WinSCP application.
Code used:
TransferOptions transferOptions = new TransferOptions();
transferOptions.TransferMode = TransferMode.Ascii;
session.GetFiles(remotePath, localPath, false, transferOptions).Check();
OS: Windows Server 2008
WinSCP: v2.0.50727
App Coded in VS2012, 32 bit
Summary: I have to pick up a file via SFTP that is placed there every 30 minutes. I would like to leave the copy there rather than remove it. No matter which way I set the flag on session.GetFiles it deletes.
Oddness: If I use the same code to pick up a copy of the file _that I placed there_ the copy deletes or does not delete appropriately <= makes me think the rights on the files are different, but they appear to be the same in both the log files and the WinSCP application.
Code used:
TransferOptions transferOptions = new TransferOptions();
transferOptions.TransferMode = TransferMode.Ascii;
session.GetFiles(remotePath, localPath, false, transferOptions).Check();