We have a client SFTP using which we receive our files. The problem is that their SFTP behaves in a wierd way. All the folder and files in it has the same timestamp, even if the file is posted today it shows timestamp as 01/01/2013
How is this possible?
If i download the same files to my local it shows different timestamp (which i believe is the original timestamp for the files)
The Left side is my local and the right side is SFTP.
Is there any way to identify what are the files that are posted today directly from SFTP, during this conditions(Timestamp not updating).
We are looking for a way to have it automated but not sure how to do it in this scenario
Any help will be much appreciated
If you're using a command-line sftp
client you can just use the -p
configuration flag to preserve timestamps either when starting the sftp
client or on download.
For example, doing this downloads all files in a directory and sets their timestamp to now:
sftp> mget *
Using the -p
flag preserves the timestamps of the source, however:
sftp> mget -p *
I assume the graphical client you're using has something similar.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With