https://github.com/realorangeone/date-group
Group a directory of files by date
https://github.com/realorangeone/date-group
date-group files triage
Last synced: 4 months ago
JSON representation
Group a directory of files by date
- Host: GitHub
- URL: https://github.com/realorangeone/date-group
- Owner: RealOrangeOne
- License: bsd-3-clause
- Created: 2020-05-24T10:07:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-20T21:39:28.000Z (about 4 years ago)
- Last Synced: 2025-03-01T12:41:44.677Z (over 1 year ago)
- Topics: date-group, files, triage
- Language: Rust
- Homepage:
- Size: 133 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Date Group
Group a directory of files.

Dates are determined through multiple sources:
- EXIF metadata
- Date in filename
## Installation
Downloads can be found under [releases](https://github.com/RealOrangeOne/date-group/releases). Alternatively, use the provided [Docker container](https://hub.docker.com/r/theorangeone/date-group).
### Build yourself
Clone the project, and use `cargo build --release` to create the binary at `target/release/date-group`.
## Usage
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](https://docs.rs/chrono/latest/chrono/format/strftime/index.html).
`--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.