pub fn subtree_counts_from_entries(
root: &Path,
entries: &[WalkEntry],
) -> Vec<(PathBuf, usize)>Expand description
Compute files-per-depth-1-subdirectory counts from an already-collected entry list.
Returns a Vec of (depth-1 path, file count) sorted by path.
Only counts file entries (not directories); skips entries containing EXCLUDED_DIRS components.
Output Vec is sorted by construction (entries are pre-sorted by path).