Main Menu

Tool not doing as expected

Started by remco, February 06, 2023, 02:55:45 PM

Previous topic - Next topic


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

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).