Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: Preserve Timestamp Staying Enabled for Synchronize

As documented, a synchronization without timestamp updating makes little sense.
Unless you exclude the "time" from the synchronization criteria. What you do not – WinSCP.SynchronizationCriteria.Time

Re: Preserve Timestamp Staying Enabled for Synchronize

Using the UI, when I synchronize I look at the default Transfer Options and the Preserve Timestamp is always checked and grey, even if I select or configure a different one and uncheck it does not persist.

My c# code has this specified but I think I am missing something as it will not respect the synOptions.PreserveTimestamp = false.. I get the errors below
SynchronizationResult synchronizationResult;
TransferOptions synOptions = new TransferOptions();
synOptions.FileMask = filemask;
synOptions.PreserveTimestamp = false;
synchronizationResult = session.SynchronizeDirectories(SyncMode, sourcefolder, destinationfolder, false, false, WinSCP.SynchronizationCriteria.Time, synOptions);
   logfile.WriteLine(DateTime.Now + " : Remote Sync Result : {0}", synchronizationResult.ToString());
catch (Exception e)
   logfile.WriteLine(DateTime.Now + " : Error Obtaining Sync Result  : {0}", e.Message);

11/16/2020 10:17:46 AM : Error Obtaining Sync Result  : 

**Upload of file 'File11.20201112.1342.txt' was successful, but error occurred while setting the permissions and/or timestamp.

If the problem persists, turn off setting permissions or preserving timestamp. Alternatively you can turn on 'Ignore permission errors' option.
The server does not support the operation.
Error code: 8
Error message from server (US-ASCII): SETSTAT unsupported

Re: Preserve Timestamp Staying Enabled for Synchronize

Can you please give us step-by-step instructions for reproducing the problem?

Btw, are you aware that the "Use same options next time" does not apply to the transfer settings? (and it never did) – That's why it's above the box.

Also I do not understand the relation to "C# code".

Preserve Timestamp Staying Enabled for Synchronize

I am unable to disable Preserve Timestamp in the Common Options or via C# code when using Synchronize. This seems to be a new issue that I have not seen before. I am running 5.17.8.
Even if I select transfer settings I have configured the Preserve Timestamp still stays enabled and I cannot uncheck.