[英]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.