是否有方法获取“`scp”‘ed文件的创建时间。例如--
>>> item_last_updated = time.ctime(os.path.getmtime('files.txt'))
Davids-iMac:QFS david$ ./ff.py
>>> #1 Grabbing RawFiles...
files.txt 100% 146MB 145.7MB/s 00:01
>>> #2 Updating Data...
>>>>> Thu Oct 8 19:20:30 2015
Davids-iMac:QFS david$ ./ff.py
>>> #1 Grabbing RawFiles...
files.txt 100% 146MB 145.7MB/s 00:01
>>> #2 Updating Data...
>>>>> Thu Oct 8 19:20:34 2015我希望这两个时间戳是一样的。有办法吗?
发布于 2015-10-09 02:24:11
使用:scp -p,它保留文件修改时间:
-p 保留原始文件中的修改时间、访问时间和模式。
https://stackoverflow.com/questions/33028868
复制相似问题