pysftp: How to update last modified date
问题 I am trying to move a certain file to another directory after doing some process over it. Moving the file was easy using Connection.rename import pysftp conn = pysftp.Connection(host = 'host', username = 'user', password = 'password') remote_src = '/dir1/file1.csv' remote_dest = '/dir2/archive_file1.csv' conn.rename(remote_src, remote_dest) conn.close() But the LastModified date remains same as of original file. Is there a way to update the LastModified date to current date while renaming?