Group a directory of files.
Dates are determined through multiple sources:
- EXIF metadata
- Date in filename
Downloads can be found under releases. Alternatively, use the provided Docker container.
Clone the project, and use cargo build --release
to create the binary at target/release/date-group
.
The only required argument is the source. The source is 1 or more directory of images you want to group. Grouping will be done relative to this source.
--verbose
can be used to see the list of files moved, and the ones which were unable to be parsed.
--dry-run
can be used to perform all the parsing operations, but without moving files.
--format
will let you specify how files will be grouped. This defaults to %Y/%m
(eg 2020/05
). Syntax.
--delete-redundant-source
will delete the source file if the destination a file is meant to be moved to already exists, to ensure things remain clean.