#jpeg #sorting #date #exif #folder #directory-structure #necessary

bin+lib psort

A small utility for sorting jpeg files by date

6 releases

Uses old Rust 2015

0.2.2 Jan 6, 2019
0.2.0 Jan 5, 2019
0.1.2 Jan 4, 2019
0.0.1 Dec 30, 2018

#25 in #necessary

MIT license

10KB
154 lines

Build Status crates.io

README

A small utility which sorts jpeg files according to their exif data.

You don't want to rely on some 3rd party software to organize your pictures? psort to the rescue!

psort looks up the year and month in which your JPEG files were shot, creates the necessary folder structure and copies or moves your pictures there.

Installation

To install psort use cargo and add ~/.cargo/bin to your PATH:

cargo install psort

Usage

The cli is pretty straight forward:

psort [FLAGS] <src> [dest]

FLAGS:
    -m, --move       move files instead of copying
    -h, --help       Prints help information
    -o, --overwrite  overwrite existing files
    -V, --version    Prints version information

ARGS:
    <src>     source folder
    <dest>    destination folder (optional)

The source folder is mandatory. If you want to sort pictures in the current directory use .:

psort .

Otherwise the pictures get sorted inside the source folder unless you specify a destination folder.

Cheers!

Dependencies

~3MB
~47K SLoC