Function ensure_root_exists

Source
fn ensure_root_exists(dir: &PathBuf) -> Result<()>