pub fn checkdir(path: &str) -> Result<()>
Creates a directory and all parent directories if they don’t exist.