Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LibertyOS-Development/kernel
/ find
Method
find
src/fs/directory.rs:52–62 ·
view source on GitHub ↗
Find
(&self, name: &str)
Source
from the content-addressed store, hash-verified
50
51
// Find
52
pub fn find(&self, name: &str) -> Option<DirectoryEntry>
53
{
54
for item in self.items()
55
{
56
if item.name() == name
57
{
58
return Some(item);
59
}
60
}
61
None
62
}
63
64
65
// Items
Callers
5
open
Method · 0.45
new_item
Method · 0.45
open
Method · 0.45
open
Method · 0.45
open
Method · 0.45
Calls
2
items
Method · 0.80
name
Method · 0.45
Tested by
no test coverage detected