Expand description
File selection: extension whitelist + directory blacklist double gate.
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 from modification.
Structs§
- Filter
Config - Compiled, effective filter configuration. The fields are the
post-normalization output of
FilterConfig::build(lowercased, validated, compiled) — constructing them by hand bypasses that normalization, so always go throughbuild. - 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.
- DEFAULT_
EXCLUDE_ PREFIXES - Directory-name prefixes excluded by default (
OutputFile*/OutputFiles*). - DEFAULT_
EXTENSIONS - Default extension whitelist (source code + config/data + docs).
- 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.