Moving images to directory structure "YYYY/make/model/YYYY-mm-dd"

Started by timitalia, February 09, 2022, 07:39:09 AM

Previous topic - Next topic

timitalia

Sorry not able to achieve this. I would like to move my images to the following directory structure:  YYYY/make/model/YYYY-mm-dd

Trying around with, but obviously wrong:

exiftool  -r  -d  %Y-%m-%d   '-directory<${How to get YYYY here?}/${make;}/${model;}/$createdate' .


Help would be much appreciated, thanks

Phil Harvey

Try this:

exiftool -r -d %Y-%m-%d '-directory<${CreateDate#;DateFmt("%Y")}/${make;}/${model;}/$createdate' .

This is mentioned in example 13 here, and in the section on the advanced formatting feature in the exiftool application documentation.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).