Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Cellphone VFAT datestamps versus linux datestamps
Date: Wed, 29 Aug 2018 07:22:42
Message-Id: 20180829082231.1f859b17@digimed.co.uk
In Reply to: Re: [gentoo-user] Cellphone VFAT datestamps versus linux datestamps by Walter Dnes
1 On Tue, 28 Aug 2018 22:39:51 -0400, Walter Dnes wrote:
2
3 > Given this info, I can cobble together a short script. A "for" loop
4 > cycles through "*.jpg". Read "CreateDate" from the EXIF data, and feed
5 > it into the "touch" command, which would reset the physical file
6 > datestamp.
7
8 You don't even need that, exiftool has a FileModifyDate tag, which is the
9 filesystem date not an EXIF tag, so you can simply set FileModifyDate to
10 CreateDate for each file.
11
12 exiftool '-FileModifyDate<CreateDate' *.jpg
13
14
15 --
16 Neil Bothwick
17
18 The best antiques are old friends.

Replies

Subject Author
[gentoo-user] [SOLVED] Cellphone VFAT datestamps versus linux datestamps Walter Dnes <waltdnes@××××××××.org>