MCPcopy 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

openMethod · 0.45
new_itemMethod · 0.45
openMethod · 0.45
openMethod · 0.45
openMethod · 0.45

Calls 2

itemsMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected