TimePlot Build Status crates.io

rm -rf

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.

Usage

Cargo.toml: add the latest crate version.

Rust: ```rust extern crate rm_rf;

fn main() { // Failure may still happen, in situations identical to where rm -rf would fail. rmrf::forceremove_all("target", true).expect("Failed to remove file/directory"); } ```

Other

Licensed as (at your choice): MIT, Apache2 and CC0 ("public domain").