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

Method delete

atomic-core/src/record/workflow/crdt/builder/trunk.rs:53–60  ·  view source on GitHub ↗

Creates a file deletion operation.

(trunk_id: TrunkId, path: String)

Source from the content-addressed store, hash-verified

51
52 /// Creates a file deletion operation.
53 pub fn delete(trunk_id: TrunkId, path: String) -> Self {
54 Self {
55 trunk_id,
56 path,
57 trunk_op: Some(TrunkOp::Delete { trunk: trunk_id }),
58 line_ops: Vec::new(),
59 }
60 }
61
62 /// Returns the trunk ID.
63 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected