Function rm_rf::remove

source · []
pub fn remove<P: AsRef<Path>>(path: P) -> Result<()>
Expand description

Force-removes a file/directory and all descendants.

In contrast to std::fs::remove_dir_all, it will remove empty directories that lack read access on Linux, and will remove “read-only” files and directories on Windows.