
[英]protocol error: mtime.sec not present when tried to transfer folder/file from remote server to local
[英]how to transfer the mtime from one file to another
我正在使用exifautotran
来自动调整从相机导入的图像的方向。 该脚本使用jpegtran
进行旋转,并且该实用程序无法修改原始文件。 我需要保留mtime,因为我随后将媒体与基于时间戳的应用程序中完成的任务进行匹配。
基本上我只需要从一个文件访问mtime并将其分配给另一个文件
如何在Mac UNIX终端中执行此操作?
使用带有-r标志的touch来设置相对于另一个文件的时间戳。 使用-m仅更改mtime。
touch -m -r /path/to/old/file /path/to/new/file
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.