Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/ | 03-May-2024 | - | 319 | 204 | ||
tests/ | 03-May-2024 | - | 101 | 75 | ||
Android.bp | D | 03-May-2024 | 1.9 KiB | 58 | 54 | |
CHANGELOG.md | D | 03-May-2024 | 138 | 12 | 6 | |
Cargo.toml | D | 03-May-2024 | 857 | 33 | 29 | |
LICENCE-APACHE | D | 03-May-2024 | 10 KiB | 192 | 160 | |
LICENCE-MIT | D | 03-May-2024 | 1 KiB | 27 | 22 | |
LICENSE | D | 03-May-2024 | 10 KiB | 192 | 160 | |
METADATA | D | 03-May-2024 | 396 | 18 | 16 | |
MODULE_LICENSE_APACHE | D | 03-May-2024 | 0 | |||
OWNERS | D | 03-May-2024 | 40 | 2 | 1 | |
README.md | D | 03-May-2024 | 1.3 KiB | 34 | 23 | |
TEST_MAPPING | D | 03-May-2024 | 643 | 38 | 37 | |
cargo2android.json | D | 03-May-2024 | 142 | 9 | 9 |
README.md
1# remove_dir_all 2 3[](https://crates.io/crates/remove_dir_all) 4[](https://docs.rs/remove_dir_all) 5[](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