Function psort::process_jpeg

source ·
pub fn process_jpeg(
    file: &DirEntry,
    src: &Path,
    dest: &Option<Box<&Path>>,
    _move: &bool,
    overwrite: &bool
) -> Result<(), Box<dyn Error>>
Expand description

The function that does the actual work

  1. get the datetime information from the jpeg file
  2. ensure the necessary folder structure: ///
  3. copy or move the jpeg file there