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

Method delete

atomic-core/src/change/ops.rs:142–149  ·  view source on GitHub ↗

Creates a file deletion operation.

(trunk_id: TrunkId, path: String)

Source from the content-addressed store, hash-verified

140
141 /// Creates a file deletion operation.
142 pub fn delete(trunk_id: TrunkId, path: String) -> Self {
143 Self {
144 trunk_id,
145 path,
146 trunk_op: Some(TrunkOp::Delete { trunk: trunk_id }),
147 line_ops: Vec::new(),
148 }
149 }
150
151 /// Creates a file move/rename operation.
152 pub fn move_file(trunk_id: TrunkId, _old_path: String, new_path: String) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected