ExifTool Forum

ExifTool => Newbies => Topic started by: exifnewbee on November 28, 2022, 11:30:39 AM

Title: Sorting into folders
Post by: exifnewbee on November 28, 2022, 11:30:39 AM
Hi,
I use the following command to sort a large number of photos into directories.

Idea is to use sorted for files that have date/time info in metadata and dir nodate for anything else.

I've applied this command to a directory (with subdirs and many files), but a few files are left in their original (sub-)dir and are not sorted into either sorted or nodate and I can't find any reason why that is the case.

Here is the command I use:
exiftool -d %Y/%m '-filename<nodate/$FileModifyDate/%f%-c.%le' '-filename<nodate/$FileModifyDate/${model;}/%f%-c.%le' '-filename<sorted/$ModifyDate/%f%-c.%le' '-filename<sorted/$ModifyDate/${model;}/%f%-c.%le' '-filename<sorted/$CreateDate/%f%-c.%le' '-filename<sorted/$CreateDate/${model;}/%f%-c.%le' '-filename<sorted/$DateTimeOriginal/%f%-c.%le' '-filename<sorted/$DateTimeOriginal/${model;}/%f%-c.%le' -r -P -ee 2 srcdir > sorting_result.txt 2>&1
Since all files that do not get moved are either .avi or .mpg I had added the -ee 2 statement above, hoping it would parse from some of the embedded metadata, but no change...
Title: Re: Sorting into folders
Post by: Phil Harvey on November 28, 2022, 12:22:56 PM
This is FAQ 16 (https://exiftool.org/faq.html#Q16).

- Phil
Title: Re: Sorting into folders
Post by: exifnewbee on November 28, 2022, 03:43:29 PM
 ;D
thanks!