Function psort::process_jpeg
source · pub fn process_jpeg(
file: &DirEntry,
src: &Path,
dest: &Option<Box<&Path>>,
copy: &bool
) -> Result<(), Box<dyn Error>>
Expand description
This function that does the actual work
- get the datetime information from the jpeg file
- ensure a folder for the corresponding month a present
- move the jpeg file into that