[][src]Function fs_extra::remove_items

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

Removes list files or directories.

Example

This example is not tested
 let mut from_paths = Vec::new();
 from_paths.push("source/dir1");
 from_paths.push("source/file.txt");

 remove_items(&from_paths).unwrap();