pub fn file_sorting<P: AsRef<Path>>(
origin: P,
destination: P,
depth: u8,
) -> Result<FileSortingResults>Expand description
Sort files by file type by creating a directory based on the file type and making a symbolic link to the original file, so no files are actually deleted.
ยงErrors
An error occurs if files cannot be read or if symbolic links cannot be created in newly-created directories based on file type.