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

Method is_directory_operation

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

Check if this graph_op represents a directory-level operation. Directory operations create or modify directory structure without file content. They use the `FOLDER` edge flag in the graph.

(&self)

Source from the content-addressed store, hash-verified

603 /// Directory operations create or modify directory structure without
604 /// file content. They use the `FOLDER` edge flag in the graph.
605 pub fn is_directory_operation(&self) -> bool {
606 matches!(
607 self,
608 GraphOp::DirAdd { .. } | GraphOp::DirDel { .. } | GraphOp::DirUndel { .. }
609 )
610 }
611
612 /// Check if this graph_op represents any structural operation (file or directory).
613 ///

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected