pub fn create_file<P: AsPath>(&self, path: P, mode: libc::mode_t)
        -> io::Result<File>
    {
        self._open_file(to_cstr(path)?.as_ref(),
            libc::O_CREAT|libc::O_WRONLY|libc::O_TRUNC,
            mode)
    }
/// Create file for writing (and truncate) in this directory
Create file for writing (and truncate) in this directory
Create file for writing ( and truncate ) in this directory
pub fn create_file<P: AsPath>(&self, path: P, mode: libc::mode_t)
        -> io::Result<File>
    {
        self._open_file(to_cstr(path)?.as_ref(),
            libc::O_CREAT|libc::O_WRONLY|libc::O_TRUNC,
            mode)
    }
pub fn create_file < P : AsPath > ( & self , path : P , mode : libc :: mode_t ) -> io :: Result < File > { self . _open_file ( to_cstr ( path ) ? . as_ref ( ) , libc :: O_CREAT | libc :: O_WRONLY | libc :: O_TRUNC , mode ) }
Create file for writing (and truncate) in this directory
Create file for writing ( and truncate ) in this directory
&self
path
P
mode
libc::mode_t
&self
path
P
mode
libc::mode_t