remove_dir

Function remove_dir 

Source
pub fn remove_dir<P>(path: P, all: bool) -> Result<()>
where P: AsRef<Path>,
Expand description

Removes a directory, but doesn’t fail if it doesn’t exist.

§Example

remove_dir("foo", true)?;
remove_dir("foo", true)?; // second time doesn't fail