Expand description
File selection: extension whitelist + directory blacklist double gate
(DESIGN.md §5).
Both gates always apply. An extension must be whitelisted AND the path
must not hit an excluded directory name, prefix rule, or glob — this is
what protects dep/, binaries, and build outputs (invariant #4).
Structs§
- Filter
Config - Compiled, effective filter configuration.
- Filter
Options - Raw filter inputs, normalized by
FilterConfig::build. - Glob
- A compiled
--exclude-globpattern.
Constants§
- DEFAULT_
EXCLUDE_ DIRS - Directory names excluded by default, matched case-insensitively on the
directory name itself (
DESIGN §5.2). - DEFAULT_
EXCLUDE_ PREFIXES - Directory-name prefixes excluded by default (
OutputFile*/OutputFiles*). - DEFAULT_
EXTENSIONS - Default extension whitelist (source + config/data + docs,
DESIGN §5.1). - MSBUILD_
EXTENSIONS - Opt-in MSBuild / Visual Studio extensions (
--include-msbuild). VS re-saves these with a BOM, so they stay off the default whitelist. - RC_
EXTENSIONS - Opt-in resource-script extensions (
--include-rc). rc.exe has limited UTF-8 support, so these stay off the default whitelist.
Functions§
- extension_
of - Lowercased file extension of
path(foo.PNG→png);Nonewhen the file has no extension.