MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_directory_flags

Method get_directory_flags

atomic-core/src/pristine/txn/write/tree.rs:16–20  ·  view source on GitHub ↗
(&self, inode: Inode)

Source from the content-addressed store, hash-verified

14 }
15
16 fn get_directory_flags(&self, inode: Inode) -> PristineResult<Option<u8>> {
17 let table = self.txn.open_table(DIRECTORIES)?;
18 let result = table.get(inode.get())?;
19 Ok(result.map(|v| v.value()))
20 }
21
22 fn get_path(&self, inode: Inode) -> PristineResult<Option<String>> {
23 let table = self.txn.open_table(REV_TREE)?;

Callers 4

Calls 2

valueMethod · 0.80
getMethod · 0.65

Tested by 4