Error:

Upload of file ‘test.txt’ was successful, but error occurred while setting the permissions and/or timestamp.

Resolution:

Turn off preserve timestamp setting.

                // Connect
                session.Open(sessionOptions);

                TransferOptions transferOptions = new TransferOptions();

                transferOptions.PreserveTimestamp = false;

                TransferOperationResult transferResult = session.PutFiles(localFullFileName, serverFileName, false, transferOptions);

Sources:

https://winscp.net/eng/docs/message_preserve_time_perm

Last modified: September 9, 2019

Author

Comments

Write a Reply or Comment