SFTP Files and Date

0
Typical Scenario: - 3rd Party provides a number of files on a hosted SFTP environment - These files are updated by the 3rd party every hour and maintain the name - We need to download all of the files and folders within the root of the SFTP Connection - Download occurs every hour, Monday to Friday. I have noticed, that when copying the files from the remote SFTP Server to the local, the Date Time Created is the date of Download and not the Date Time the file was originally created by the 3rd party. How to resolve this please?
 
asked 4/1/2019 8:00:16 AM
add a comment

2 Answers

1
Please set `RestoreFileProperties` property to `true` and `ServerTimeZoneOffset` to a proper value. To determine the time difference between the client and server, use `GetServerTimeDifference` method.
 
answered 4/1/2019 12:07:55 PM
add a comment
0
Thank you Setting the 'RestoreFileProperties' to true did the trick.
 
answered 4/2/2019 12:15:10 PM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged ultimate sftp or ask your own question.