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

Method get_directory_flags

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

Source from the content-addressed store, hash-verified

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

Callers 4

Calls 1

getMethod · 0.65

Tested by 4