Crate psort

Source
Expand description

§psort

A small utility for sorting jpeg files by date.

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.

Functions§

exif_data
Returns the exif data of a JPEG file or a possible error
file_handle
Returns the file handle or possible Error
get_target_dir
Returns the desired folder structure <src|dest>/<year>/<month> as path::PathBuf
is_jpeg
Returns the file handle if the lowercase extension corresponds to either “jpeg” or “jpg”. Useful in filter_map.
jpegs
Returns a vector of jepg files in a directory to which the user has permissions
process_jpeg
The function that does the actual work