I'm using the .NET Library and anytime I call SynchronizeDirectories using TimeStampMode it synchronizes the whole directory. I'm only doing remote synchronization. If I use the WINSCP client I do not experience this issue so I'm not sure if I'm missing some setting with .NET or there is a bug. I am using CoreFTP as my server. I also did a test where I grab the fileinfo myself using the .NET and it appears to return the same LastWriteTime stamp as my local file.
This is the code I'm using to do the sync:
TransferOptions transferOptions = new TransferOptions(); transferOptions.TransferMode = TransferMode.Binary; transferOptions.FileMask = WinSCPUtil.CreateFilterMask(m_mapping); var syncResult = session.SynchronizeDirectories(SynchronizationMode.Remote, m_mapping.SourcePath, m_mapping.DestPath, false, false, SynchronizationCriteria.Time, transferOptions); syncResult.Check();
Any help would be appreciated. I'd prefer to use SynchronizeDirectories over writing my own function that does this.