0xCCF4 / PhotoSort

A tool to rename/move/copy/hardlink/symlink and sort photos and videos by its EXIF date.
GNU General Public License v3.0
5 stars 1 forks source link

Choose a folder schema on moving #33

Closed aseques closed 1 month ago

aseques commented 1 month ago

Hi, I found your tool and it really looks promising, unfortunately it doesn't yet fill on of my needs (or I haven't been able to find it in the documentation. The scenario is that I am organizing de pictures in a structure of folders like --target-dir /folder/destination/YYYY/MM This basically for two reasons:

So I would be happy if that would be possible, thanks a lot

0xCCF4 commented 1 month ago

Hi, good idea, i will implement this.

0xCCF4 commented 1 month ago

From version 0.2.0 onward it is now possible to sort a library to subfolders. I changed how one can specify a target file format. For your use-case --target-dir /folder/destination --file-format "{date?%Y}/{date?%M}/{type}{_:date}{-:name}{-:dup}" could do the trick. This would sort the files to /folder/destination/YYYY/MM/xxxx.zzz

See https://docs.rs/chrono/latest/chrono/format/strftime/index.html for a full reference which date/time formatting codes can be put into {date?...}

aseques commented 1 month ago

Thanks, this is great

0xCCF4 commented 1 month ago

You'r welcome. If you have any further ideas, just open a new issue.