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);
Comments