/// Retrieve directory listing of node |pos|. Return an error if |pos| is not a directory
/// node
Retrieve directory listing of node |pos|. Return an error if |pos| is not a directory
node
Retrieve directory listing of node |pos| . Return an error if |pos| is not a directory node
fn open_dir(&self, pos: usize) -> Result<&HashMap<String, usize>, Error> {
        let node = self.nodes.get(pos).expect(&format!("missing node {}", pos));
        match node {
            ServiceFsNode::Directory { children } => Ok(children),
            _ => bail!("node not a directory: {}", pos),
        }
    }
fn open_dir ( & self , pos : usize ) -> Result < & HashMap < String , usize > , Error > { let node = self . nodes . get ( pos ) . expect ( & format ! ( " " pos ) ) ; match node { ServiceFsNode :: Directory { children } => Ok ( children ) , _ => bail ! ( " " pos ) , } }
Retrieve directory listing of node |pos|.
Retrieve directory listing of node |pos| .
&self
pos
usize