fn create_dir_all(dir_path: &Path) -> Result<()> {
    if dir_path.is_file() {
        bail!(
            "cannot overwrite non-directory '{}' with a directory",
            dir_path.display()
        );
    }
    fs::create_dir_all(&dir_path)
        .with_context(|| format!("Couldn't create path: \"{}\"", dir_path.display(),))
}
// create all directories in path if possible.
create all directories in path if possible.
create all directories in path if possible .
fn create_dir_all(dir_path: &Path) -> Result<()> {
    if dir_path.is_file() {
        bail!(
            "cannot overwrite non-directory '{}' with a directory",
            dir_path.display()
        );
    }
    fs::create_dir_all(&dir_path)
        .with_context(|| format!("Couldn't create path: \"{}\"", dir_path.display(),))
}
fn create_dir_all ( dir_path : & Path ) -> Result < ( ) > { if dir_path . is_file ( ) { bail ! ( " " dir_path display ( ) ) ; } fs :: create_dir_all ( & dir_path ) . with_context ( | | format ! ( " \" \" " dir_path display ( ) ) ) }
create all directories in path if possible.
create all directories in path if possible .
dir_path
&Path