Preserving SFTP File Times

Allowing the Sftp component to preserve file times for uploads and downloads.

Date Entered: 07/08/2016    Last Updated: 07/11/2016

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 entry please contact our support team at kb@nsoftware.com.