Registry / utility / remove-dir-all

remove-dir-all

JSON →
library1.0.0rscratesunverified

A safe, reliable implementation of remove_dir_all for Windows, handling long paths and permissions correctly.

# Cargo.toml [dependencies] remove_dir_all = "1.0.0"
INSTALL
IMPORT
SIG · REMOVE-DIR-ALL
R
remove-dir-all
utilityrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

remove_dir_all
use remove_dir_all::remove_dir_all;

Recursively deletes a directory and all its contents.

use remove_dir_all::remove_dir_all; fn main() { remove_dir_all("./temp_dir").unwrap(); }
Debug
Known issues
gotchaOn Windows, the standard library's remove_dir_all may fail for long paths; this crate provides a workaround.
fix
Use this crate instead of std::fs::remove_dir_all on Windows.
affects: >=0.0.0
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
remove-dir-all — cargo add remove-dir-all · libregistry