https://github.com/krgn/file-utils
collecting some custom utilities for managing files
https://github.com/krgn/file-utils
Last synced: 3 months ago
JSON representation
collecting some custom utilities for managing files
- Host: GitHub
- URL: https://github.com/krgn/file-utils
- Owner: krgn
- Created: 2023-11-10T19:05:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T03:51:25.000Z (over 2 years ago)
- Last Synced: 2025-03-21T08:14:55.506Z (over 1 year ago)
- Language: Rust
- Size: 64.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# file-utils
Doing some experiments with rayon and data-parallelism in Rust, with the overall
goal being finding duplicates in my Photo library, and ultimately using exif
meta to rebuild the collection without duplicates and according to a date based
layout.
## extract-metadata
This command will walk a directory tree, hash and extract exif metadata from
all files and output the result as a stream of JSON lines to stdout. Requires
the exif command in `$PATH` (should work if you use nix flakes + direnv).
```
cargo run --bin extract-metadata --dir /path/to/photos | tee -a my-fotos.json
```
## find-duplicates
This command expects JSON input in the format from above, and outputs a list
of content hashes and the files that match it. Only duplicates will be output.
```
cargo run --bin find-duplicates --input-file /path/to/my-fotos.json
```