// Ensure the installed directory exists.
Ensure the installed directory exists.
Ensure the installed directory exists .
pub fn ensure_dir(dir: &Path) -> bool {
        if !dir.exists() {
            return fs::create_dir_all(dir).is_ok();
        }
        true
    }
pub fn ensure_dir ( dir : & Path ) -> bool { if ! dir . exists ( ) { return fs :: create_dir_all ( dir ) . is_ok ( ) ; } true }
Ensure the installed directory exists.
Ensure the installed directory exists .
dir
&Path