fn create_file_with_dirs<P: AsRef<Path>>(path: P) -> Result<Option<File>>
Create a file at the given path, creating any missing parent directories.