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

Method is_file_operation

atomic-core/src/change/graph_op.rs:590–599  ·  view source on GitHub ↗

Check if this graph_op represents a file-level operation.

(&self)

Source from the content-addressed store, hash-verified

588
589 /// Check if this graph_op represents a file-level operation.
590 pub fn is_file_operation(&self) -> bool {
591 matches!(
592 self,
593 GraphOp::FileAdd { .. }
594 | GraphOp::FileDel { .. }
595 | GraphOp::FileUndel { .. }
596 | GraphOp::FileMove { .. }
597 | GraphOp::SetAttr { .. }
598 )
599 }
600
601 /// Check if this graph_op represents a directory-level operation.
602 ///

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected