Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
196
struct InodeRef {
Callers
7
read_dir
Method · 0.80
read_dir
Method · 0.80
lookup
Method · 0.80
create
Method · 0.80
link
Method · 0.80
unlink
Method · 0.80
rename
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected