Expand description
Recursive candidate collection on top of walkdir.
- Symlinks are never followed, neither directories nor files: a symlinked directory is not descended into and a symlinked file is skipped.
- Directory-name / prefix exclusions prune directories during traversal
(never descended into); the same rule deliberately does not drop
files — a file named
outputfiles_config.mdis legitimate content, and files are gated by the extension whitelist anyway. - The root entry itself is always kept: an explicitly given
--rootmust be honored even when its basename collides with an exclusion rule. skippaths (e.g. the--reportoutput) are excluded from collection so a report written inside the tree never pollutes later runs.- Walk errors (permission, …) are collected as warnings, never fatal.
Structs§
- Walk
Result - Collected candidates plus non-fatal traversal warnings.
Functions§
- collect_
files - Collect whitelisted files under
root, sorted by path so every run processes and reports files in the same deterministic order.