File System

PyFnmatch

Python stdlib module — fnmatch. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.filter()Neutral
#
Signature
filter(names, pat)

Construct a list from those elements of the iterable NAMES that match PAT.

.fnmatch()Neutral
#
Signature
fnmatch(name, pat)

Test whether FILENAME matches PATTERN.

.fnmatchcase()Neutral
#
Signature
fnmatchcase(name, pat)

Test whether FILENAME matches PATTERN, including case.

.translate()Neutral
#
Signature
translate(pat)

Translate a shell PATTERN to a regular expression.

Fully-Qualified Names

FQNField
fnmatchfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import fnmatch