MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / has_directory_shape

Function has_directory_shape

src/path_tree.rs:82–86  ·  view source on GitHub ↗
(node: &PathNode)

Source from the content-addressed store, hash-verified

80}
81
82fn has_directory_shape(node: &PathNode) -> bool {
83 node.children
84 .values()
85 .any(|child| !child.children.is_empty() || has_directory_shape(child))
86}
87
88fn render_children(children: &BTreeMap<String, PathNode>, indent: usize, lines: &mut Vec<String>) {
89 for (segment, child) in children {

Callers 1

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected