remove_dir_all/
lib.rs

1//! Reliably remove a directory and all of its children.
2//!
3//! This library provides a reliable implementation of `remove_dir_all` for Windows.
4//! For Unix systems, it re-exports `std::fs::remove_dir_all`.
5
6#![deny(missing_debug_implementations)]
7#![deny(missing_docs)]
8
9#[cfg(windows)]
10extern crate winapi;
11
12#[cfg(doctest)]
13#[macro_use]
14extern crate doc_comment;
15
16#[cfg(doctest)]
17doctest!("../README.md");
18
19#[cfg(windows)]
20mod fs;
21
22#[cfg(windows)]
23pub use self::fs::remove_dir_all;
24
25#[cfg(not(windows))]
26pub use std::fs::remove_dir_all;