Function fs_extra::remove_items [] [src]

pub fn remove_items<P>(from_items: &Vec<P>) -> Result<()> where
    P: AsRef<Path>, 

Removes list 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();