On Sun, Jul 11, 2021 at 6:34 AM, Dr. Nikolaus Klepp
<office(a)klepp.biz> wrote:
It might be that "exiftool" already has
the functionality needed - quote from the man page:
exiftool '-FileModifyDate<DateTimeOriginal' dir
Use the original date from the meta information to set the same file's filesystem
modification
date for all images in a directory.
A problem with unconstrained exiftool is that to be safe it makes a copy of each file it
modifies, so there's generally a lot of cleaning up to do after running it.
Not in this case, just put some images in a temprary folder and run:
$ exiftool '-FileModifyDate<DateTimeOriginal' .
.. nothing to clean up :)
Nik
--
Please do not email me anything that you are not comfortable also sharing with the NSA,
CIA ...