Skip to main content

Module walker

Module walker 

Source
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.md is legitimate content, and files are gated by the extension whitelist anyway.
  • The root entry itself is always kept: an explicitly given --root must be honored even when its basename collides with an exclusion rule.
  • skip paths (e.g. the --report output) 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§

WalkResult
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.