pub fn create_dir_all(&mut self, path: &Path) -> Result<()> {
        match self.create_fnode(path, FileType::Dir, Options::default()) {
            Ok(_) => return Ok(()),
            Err(ref err) if *err == Error::NotFound => {}
            Err(err) => return Err(err),
        }
        match path.parent() {
            Some(p) => self.create_dir_all(p)?,
            None => return Err(Error::IsRoot),
        }
        self.create_fnode(path, FileType::Dir, Options::default())?;
        Ok(())
    }
/// Recursively create directories along the path
Recursively create directories along the path
Recursively create directories along the path
pub fn create_dir_all(&mut self, path: &Path) -> Result<()> {
        match self.create_fnode(path, FileType::Dir, Options::default()) {
            Ok(_) => return Ok(()),
            Err(ref err) if *err == Error::NotFound => {}
            Err(err) => return Err(err),
        }
        match path.parent() {
            Some(p) => self.create_dir_all(p)?,
            None => return Err(Error::IsRoot),
        }
        self.create_fnode(path, FileType::Dir, Options::default())?;
        Ok(())
    }
pub fn create_dir_all ( & mut self , path : & Path ) -> Result < ( ) > { match self . create_fnode ( path , FileType :: Dir , Options :: default ( ) ) { Ok ( _ ) => return Ok ( ( ) ) , Err ( ref err ) if * err == Error :: NotFound => { } Err ( err ) => return Err ( err ) , } match path . parent ( ) { Some ( p ) => self . create_dir_all ( p ) ? , None => return Err ( Error :: IsRoot ) , } self . create_fnode ( path , FileType :: Dir , Options :: default ( ) ) ? ; Ok ( ( ) ) }
Recursively create directories along the path
Recursively create directories along the path
&mut self
path
&Path
&mut self
path
&Path