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

Method get_path

atomic-core/src/pristine/txn/read.rs:793–800  ·  view source on GitHub ↗
(&self, inode: Inode)

Source from the content-addressed store, hash-verified

791 }
792
793 fn get_path(&self, inode: Inode) -> PristineResult<Option<String>> {
794 let table = self.txn.open_table(REV_TREE)?;
795 let result = table.get(inode.get())?;
796 match result {
797 Some(value) => Ok(Some(value.value().to_string())),
798 None => Ok(None),
799 }
800 }
801
802 fn inode_position(&self, inode: Inode) -> PristineResult<Option<Position<NodeId>>> {
803 let table = self.txn.open_table(INODES)?;

Callers 1

Calls 2

valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected