Function std::fs::remove_dir_allStable
[-] [+]
[src]
pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> Result<()>
Removes a directory at this path, after removing all its contents. Use carefully!
This function does not follow soft links and it will simply remove the soft link itself.
Errors
See file::remove_file
and fs::remove_dir
.
Examples
extern crate std; fn main() { use std::fs; fn foo() -> std::io::Result<()> { try!(fs::remove_dir_all("/some/dir")); Ok(()) } }use std::fs; try!(fs::remove_dir_all("/some/dir"));