• Home
Name Date Size #Lines LOC

..--

src/03-May-2024-319204

tests/03-May-2024-10175

Android.bpD03-May-20241.9 KiB5854

CHANGELOG.mdD03-May-2024138 126

Cargo.tomlD03-May-2024857 3329

LICENCE-APACHED03-May-202410 KiB192160

LICENCE-MITD03-May-20241 KiB2722

LICENSED03-May-202410 KiB192160

METADATAD03-May-2024396 1816

MODULE_LICENSE_APACHED03-May-20240

OWNERSD03-May-202440 21

README.mdD03-May-20241.3 KiB3423

TEST_MAPPINGD03-May-2024643 3837

cargo2android.jsonD03-May-2024142 99

README.md

1# remove_dir_all
2
3[![Latest Version](https://img.shields.io/crates/v/remove_dir_all.svg)](https://crates.io/crates/remove_dir_all)
4[![Docs](https://docs.rs/remove_dir_all/badge.svg)](https://docs.rs/remove_dir_all)
5[![License](https://img.shields.io/crates/l/remove_dir_all.svg)](https://github.com/XAMPPRocky/remove_dir_all)
6
7## Description
8
9Reliable and fast directory removal functions.
10
11* `remove_dir_all` - on non-Windows this is a re-export of
12  `std::fs::remove_dir_all`. For Windows an implementation that handles the
13  locking of directories that occurs when deleting directory trees rapidly.
14
15* `remove_dir_contents` - as for `remove_dir_all` but does not delete the
16  supplied root directory.
17
18* `ensure_empty_dir` - as for `remove_dir_contents` but will create the
19  directory if it does not exist.
20
21```rust,no_run
22extern crate remove_dir_all;
23
24use remove_dir_all::*;
25
26fn main() {
27    remove_dir_all("./temp/").unwrap();
28    remove_dir_contents("./cache/").unwrap();
29}
30```
31
32## Minimum Rust Version
33The minimum rust version for `remove_dir_all` is the latest stable release, and the minimum version may be bumped through patch releases. You can pin to a specific version by setting by add `=` to your version (e.g. `=0.6.0`), or commiting a `Cargo.lock` file to your project.
34