MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / as_dir

Method as_dir

api/src/vfs/tmp.rs:188–193  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

186 }
187
188 fn as_dir(&self) -> VfsResult<&DirContent> {
189 match self.content {
190 NodeContent::Dir(ref content) => Ok(content),
191 _ => Err(VfsError::NotADirectory),
192 }
193 }
194}
195
196struct InodeRef {

Callers 7

read_dirMethod · 0.80
read_dirMethod · 0.80
lookupMethod · 0.80
createMethod · 0.80
linkMethod · 0.80
unlinkMethod · 0.80
renameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected