Expand description
Directory traversal with .gitignore support.
Provides recursive directory walking with automatic filtering based on .gitignore and .ignore files.
Uses the ignore crate for cross-platform, efficient file system traversal.
Structs§
Enums§
Functions§
- subtree_
counts_ from_ entries - 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_DIRScomponents. Output Vec is sorted by construction (entries are pre-sorted by path). - walk_
directory - Walk a directory with support for
.gitignoreand.ignore.max_depth=0maps to unlimited recursion (None), positive values limit depth. The returned entries are sorted lexicographically by path.