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

Function get_trunk_id

atomic-core/src/output/crdt.rs:453–455  ·  view source on GitHub ↗

Get the trunk ID for a file path.

(txn: &mut T, path: &str)

Source from the content-addressed store, hash-verified

451
452/// Get the trunk ID for a file path.
453pub fn get_trunk_id<T: MutTxnT>(txn: &mut T, path: &str) -> PristineResult<Option<TrunkId>> {
454 txn.get_trunk_by_path(path)
455}
456
457// CRDT-driven file output
458

Callers

nothing calls this directly

Calls 1

get_trunk_by_pathMethod · 0.45

Tested by

no test coverage detected