Function file_system::delete_dir_if_exist[][src]

pub fn delete_dir_if_exist<P: AsRef<Path>>(dir: P) -> Result<bool>

Deletes given path from file system. Returns true on success, false if the directory doesn’t exist. Otherwise the raw error will be returned.