ExifTool Forum

ExifTool => ExifTool GUI => Topic started by: remco on February 06, 2023, 02:55:45 PM

Title: Tool not doing as expected
Post by: remco on February 06, 2023, 02:55:45 PM
Based on the example page I expcted that image files should be moved from org to a dated structure, stated as YEAR/MONTH.

exiftool -r -directory=Org/%Y/%m Org

Unfortunately, it created a %Y/%m folder (with these characters). How could I ensure the real year & month will be used?

BTW the command is executed on MAC OS
Title: Re: Tool not doing as expected
Post by: Phil Harvey on February 06, 2023, 03:44:16 PM
There should be no example that directly assigns a date/time format code to Directory.

You should be specifying the date/time format with the -d option then copying some date/time tag to the directory, like this:

exiftool -r -d DST/%Y/%m "-directory<createdate" ORG

Be sure the destination DST is different from ORG or you could potentially try to move your files twice.

- Phil