Preserving SFTP File Times
By default, the Sftp component will not preserve the time stamps on files when they are uploaded or downloaded. In order to allow the component to do so, the PreserveFileTime configuration setting will need to be set to True, like so:
sftp.Config("PreserveFileTime=True");
This will cause the component to preserve the ModifiedTime, and AccessTime of the file. If SFTP 4.0 is used, the CreationTime will also be preserved.
We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@nsoftware.com.