Function rm_rf::force_remove_all

source ·
pub fn force_remove_all<P: AsRef<Path>>(
    path: P,
    ignore_not_existing: bool
) -> 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.

The current implementation may be not the most efficient one, but it should work.