Function fs_extra::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();