pub fn create_path(path: &str, file: bool) -> Result<PathBuf, Box<dyn Error>>
Create a path, optionally creating a file at the path. If file is true, creates the file; otherwise creates a directory.
file