Is there a way of preserving the timestamp when using Paramiko to SFTP files from one server to another similar to the -p
argument in Linux?
Original file:
jim@vm3634:~$ ls -la
-rwxrwx--- 1 jim admin 2214 Mar 30 17:33 compcip.asc
Uploaded file:
sftp> ls -la
-rwxrwx--- 1 no-user no-group 2214 Mar 30 18:49 compcip.asc
The uploaded file needs to have the same timestamp as the original.