commit | ceca3752a6fbebda55890e92753c6912c68739a4 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <[email protected]> | Tue Jan 31 19:32:08 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue Jan 31 19:32:08 2023 +0000 |
tree | be8e444a459791e1d5e5efbe4e90cb4bd775346c | |
parent | 66e638e844fb745545ab25438f531966210836e7 [diff] | |
parent | dea90528c3dc7b23a363625be1d3944d3eb5ce51 [diff] |
Update TEST_MAPPING am: dea90528c3 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/remove_dir_all/+/2411541 Change-Id: I2874188d3aeea0679331f64992cb18acf5d72c67 Signed-off-by: Automerger Merge Worker <[email protected]>
Reliable and fast directory removal functions.
remove_dir_all
- on non-Windows this is a re-export of std::fs::remove_dir_all
. For Windows an implementation that handles the locking of directories that occurs when deleting directory trees rapidly.
remove_dir_contents
- as for remove_dir_all
but does not delete the supplied root directory.
ensure_empty_dir
- as for remove_dir_contents
but will create the directory if it does not exist.
extern crate remove_dir_all; use remove_dir_all::*; fn main() { remove_dir_all("./temp/").unwrap(); remove_dir_contents("./cache/").unwrap(); }
The 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.