fs_extra

Function remove_items

Source
pub fn remove_items<P>(from_items: &[P]) -> Result<()>
where P: AsRef<Path>,
Expand description

Removes a list of files or directories.

§Example

 let mut from_paths = Vec::new();
 from_paths.push("source/dir1");
 from_paths.push("source/file.txt");

 remove_items(&from_paths).unwrap();