fn resolve_parent(&self, path: &Path) -> Result<(FnodeRef, String)> {
        let parent_path = path.parent().ok_or(Error::IsRoot)?;
        let file_name = path
            .file_name()
            .and_then(|s| s.to_str())
            .ok_or(Error::InvalidPath)?;
        let parent = self.resolve(parent_path)?;
        Ok((parent, file_name.to_string()))
    }
// resolve path to parent fnode and child file name
resolve path to parent fnode and child file name
resolve path to parent fnode and child file name
fn resolve_parent(&self, path: &Path) -> Result<(FnodeRef, String)> {
        let parent_path = path.parent().ok_or(Error::IsRoot)?;
        let file_name = path
            .file_name()
            .and_then(|s| s.to_str())
            .ok_or(Error::InvalidPath)?;
        let parent = self.resolve(parent_path)?;
        Ok((parent, file_name.to_string()))
    }
fn resolve_parent ( & self , path : & Path ) -> Result < ( FnodeRef , String ) > { let parent_path = path . parent ( ) . ok_or ( Error :: IsRoot ) ? ; let file_name = path . file_name ( ) . and_then ( | s | s . to_str ( ) ) . ok_or ( Error :: InvalidPath ) ? ; let parent = self . resolve ( parent_path ) ? ; Ok ( ( parent , file_name . to_string ( ) ) ) }
resolve path to parent fnode and child file name
resolve path to parent fnode and child file name
&self
path
&Path
&self
path
&Path