(node: &BTreeMap<String, TreeNode>)
| 260 | } |
| 261 | |
| 262 | fn count_nodes(node: &BTreeMap<String, TreeNode>) -> usize { |
| 263 | let mut total = 0; |
| 264 | for child in node.values() { |
| 265 | total += 1 + count_nodes(&child.children); |
| 266 | } |
| 267 | total |
| 268 | } |
| 269 | |
| 270 | mod glob_match { |
| 271 | use std::path::Path; |