commit | 77a4359856a75e9ba8cb588615f4adfe74628a9f | [log] [tgz] |
---|---|---|
author | Jiyong Park <[email protected]> | Thu Nov 11 11:24:40 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Nov 11 11:24:40 2021 +0000 |
tree | bf6623539f5e42b2fc6e5befa25d6f01b8b1e88a | |
parent | 40770fb34ec42f3097bf2629940b4db65d6e51a2 [diff] | |
parent | b08b0f46c9d5141a821ad3d3c8c441e85108dea4 [diff] |
Update Android.bp with cargo2android.json am: dabeaa4ed7 am: bf2e620652 am: b08b0f46c9 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/remove_dir_all/+/1876694 Change-Id: I1168e82f6d5adbb1bf76ed224ae3c021581559ae
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.