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

Method get_inode

atomic-core/src/pristine/txn/write/tree.rs:7–14  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

5
6impl<'a> TreeTxnT for WriteTxn<'a> {
7 fn get_inode(&self, path: &str) -> PristineResult<Option<Inode>> {
8 let table = self.txn.open_table(TREE)?;
9 let result = table.get(path)?;
10 match result {
11 Some(value) => Ok(Some(Inode::new(value.value()))),
12 None => Ok(None),
13 }
14 }
15
16 fn get_directory_flags(&self, inode: Inode) -> PristineResult<Option<u8>> {
17 let table = self.txn.open_table(DIRECTORIES)?;

Callers

nothing calls this directly

Calls 2

valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected