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

  1. get the datetime information from the jpeg file
  2. ensure a folder for the corresponding month a present
  3. move the jpeg file into that