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

Method exceeds_depth

atomic-core/src/output/repo/tree.rs:422–428  ·  view source on GitHub ↗

Check if a path exceeds the maximum depth. # Arguments `path` - Path to check # Returns `true` if the path exceeds max_depth.

(&self, path: &str)

Source from the content-addressed store, hash-verified

420 ///
421 /// `true` if the path exceeds max_depth.
422 pub fn exceeds_depth(&self, path: &str) -> bool {
423 if let Some(max) = self.max_depth {
424 Self::path_depth(path) > max
425 } else {
426 false
427 }
428 }
429}
430
431impl Default for TreeCollectOptions {

Callers 1

collect_treeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected