I am attempting to synchronize with a particular folder on a remote SFTP server.
When I run the following:
SynchronizationResult result = session.SynchronizeDirectories(
SynchronizationMode.Local,
@"\\path\to\local",
"/Remote",
false,
false,
SynchronizationCriteria.None,
null);
It consistently downloads/overwrites every single file that is in the remote folder (so 50 files in my case) even though files of the same name already exist. The log seems to suggest that the synchronize sees the files as being "updated". This particular sFTP server suppresses file attributes like file size and modified dates, which is why I am using SynchronizationCriteria.None. When I run the synchronize through the client directly it only downloads the new files that don't exist locally which is the desired behavior.
Am I missing something?
Thanks,
JD