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

Method get_trunk_by_path

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

Source from the content-addressed store, hash-verified

432 }
433
434 fn get_trunk_by_path(&self, path: &str) -> Result<Option<TrunkId>, Self::Error> {
435 Ok(self.path_index.get(path).copied())
436 }
437
438 fn get_trunk_by_inode(&self, inode: Inode) -> Result<Option<TrunkId>, Self::Error> {
439 Ok(self.inode_index.get(&inode).copied())

Callers 3

apply_createFunction · 0.45
apply_moveFunction · 0.45
validate_path_availableFunction · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected