pub fn create_file_with_parents(path: &Path) -> File
Create a file with all its parent directories.
Panics if the file cannot be created.