Skip to main content

force_remove_dir

Function force_remove_dir 

Source
pub fn force_remove_dir(path: &Path) -> Result<()>
Expand description

Remove a tree robustly: read-only files (a wrapper’s store, copies that inherited the read-only attribute) block remove_dir_all on Windows, so clear the flag and retry once; report the original error if it still fails.