[][src]Function remove_dir_all::remove_dir_all

pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> Result<()>

Reliably removes directory and all of it's children.

extern crate remove_dir_all;

use std::fs;
use remove_dir_all::*;

fn main() {
    fs::create_dir("./temp/").unwrap();
    remove_dir_all("./temp/").unwrap();
}