pub fn new_file_at<P: AsRef<Path>>(path: P) -> Result<File> {
        let ret = File {
            _dir: None,
            path: path.as_ref().to_path_buf(),
        };
        if let Some(parent) = path.as_ref().parent() {
            fs::create_dir_all(parent)?;
        }
        create_file(ret.path.as_path())?;
        Ok(ret)
    }
/// Create a new temporary file at the specified path.
Create a new temporary file at the specified path.
Create a new temporary file at the specified path .
pub fn new_file_at<P: AsRef<Path>>(path: P) -> Result<File> {
        let ret = File {
            _dir: None,
            path: path.as_ref().to_path_buf(),
        };
        if let Some(parent) = path.as_ref().parent() {
            fs::create_dir_all(parent)?;
        }
        create_file(ret.path.as_path())?;
        Ok(ret)
    }
pub fn new_file_at < P : AsRef < Path > > ( path : P ) -> Result < File > { let ret = File { _dir : None , path : path . as_ref ( ) . to_path_buf ( ) , } ; if let Some ( parent ) = path . as_ref ( ) . parent ( ) { fs :: create_dir_all ( parent ) ? ; } create_file ( ret . path . as_path ( ) ) ? ; Ok ( ret ) }
Create a new temporary file at the specified path.
Create a new temporary file at the specified path .
path
P
path
P