MCPcopy Index your code
hub / github.com/XAMPPRocky/remove_dir_all

github.com/XAMPPRocky/remove_dir_all @1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.0 ↗ · + Follow
53 symbols 115 edges 8 files 16 documented · 30%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

remove_dir_all

Latest Version Docs License

Description

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.

```rust,no_run extern crate remove_dir_all;

use remove_dir_all::*;

fn main() { remove_dir_all("./temp/").unwrap(); remove_dir_contents("./cache/").unwrap(); } ```

Minimum Rust Version

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.

Extension points exported contracts — how you extend this code

RemoveDir (Interface)
Extension trait adding `remove_dir_all` support to [`std::fs::File`]. [1 implementers]
src/lib.rs
Io (Interface)
(no doc) [2 implementers]
src/_impl/io.rs

Core symbols most depended-on inside this repo

ensure_empty_dir
called by 11
src/lib.rs
remove_dir_all
called by 6
src/lib.rs
expect_failure
called by 5
src/lib.rs
assert_exists
called by 5
tests/interface.rs
remove_dir_contents
called by 4
src/lib.rs
default_parallel_mode
called by 3
src/_impl.rs
build
called by 3
src/lib.rs
assert_empty
called by 3
tests/interface.rs

Shape

Function 28
Method 14
Class 6
Enum 3
Interface 2

Languages

Rust100%

Modules by API surface

src/lib.rs18 symbols
tests/interface.rs13 symbols
src/_impl.rs8 symbols
src/_impl/unix.rs5 symbols
src/bin/remove-dir-all.rs3 symbols
src/_impl/win.rs3 symbols
src/_impl/path_components.rs2 symbols
src/_impl/io.rs1 symbols

For agents

$ claude mcp add remove_dir_all \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page