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

Method get_inode

atomic-core/src/pristine/txn/read.rs:778–785  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

776
777impl TreeTxnT for ReadTxn {
778 fn get_inode(&self, path: &str) -> PristineResult<Option<Inode>> {
779 let table = self.txn.open_table(TREE)?;
780 let result = table.get(path)?;
781 match result {
782 Some(value) => Ok(Some(Inode::new(value.value()))),
783 None => Ok(None),
784 }
785 }
786
787 fn get_directory_flags(&self, inode: Inode) -> PristineResult<Option<u8>> {
788 let table = self.txn.open_table(DIRECTORIES)?;

Callers 1

Calls 2

valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected