Expand description
Rule types, pattern matching, and file scanning.
A rule pairs a file pattern with a handler name. The Scanner
walks a pack directory and matches each file against the rule set.
Exclusion rules are checked first, then inclusion rules by priority
(descending). The first match wins.
Structs§
- Pack
Entry - A raw file entry discovered during directory walking (before rule matching).
- Rule
- A rule mapping a file pattern to a handler.
- Rule
Match - A file that matched a rule during pack scanning.
- Scanner
- Scans pack directories and matches files against rules.
Constants§
- SPECIAL_
FILES - Files that are always skipped during scanning.
Functions§
- group_
by_ handler - Groups rule matches by handler name.
- handler_
execution_ order - Returns handler names in execution order.
- should_
skip_ entry - Should this entry name be skipped at scan or handler-recursion time?