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

Method get_trunk_by_path

atomic-core/src/crdt/apply/traits.rs:548–550  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

546 }
547
548 fn get_trunk_by_path(&self, path: &str) -> Result<Option<TrunkId>, Self::Error> {
549 Ok(self.path_index.get(path).copied())
550 }
551
552 fn get_trunk_by_inode(&self, inode: Inode) -> Result<Option<TrunkId>, Self::Error> {
553 Ok(self.inode_index.get(&inode).copied())

Callers 1

test_get_trunk_by_pathFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 1

test_get_trunk_by_pathFunction · 0.36