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

Method get_path

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

Source from the content-addressed store, hash-verified

20 }
21
22 fn get_path(&self, inode: Inode) -> PristineResult<Option<String>> {
23 let table = self.txn.open_table(REV_TREE)?;
24 let result = table.get(inode.get())?;
25 match result {
26 Some(value) => Ok(Some(value.value().to_string())),
27 None => Ok(None),
28 }
29 }
30
31 fn inode_position(&self, inode: Inode) -> PristineResult<Option<Position<NodeId>>> {
32 let table = self.txn.open_table(INODES)?;

Callers

nothing calls this directly

Calls 2

valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected