[][src]Function lms::file_ops::delete_files_sequential

pub fn delete_files_sequential<'a, T, S>(files_to_delete: T, location: &str) where
    T: IntoIterator<Item = &'a S>,
    S: FileOps + 'a, 

Deletes all given files sequentially

This function ensures that the files are deleted in the exact order given

Arguments

  • files_to_delete: files to delete, or sorted empty directories
  • location: base directory of the files to delete, such that for all file in files_to_delete, location + file.path() is the absolute path of the file