module documentation
distutils.filelist Provides the FileList class, used for poking about the filesystem and building lists of files.
Class |
|
A list of files built by on exploring the filesystem and filtered by applying various patterns to what we find there. |
Function | findall |
Find all files under 'dir' and return the list of full filenames. Unless dir is '.', return full filenames with dir prepended. |
Function | glob |
Translate a shell-like glob pattern to a regular expression; return a string containing the regex. Differs from 'fnmatch.translate()' in that '*' does not match "special characters" (which are platform-specific). |
Function | translate |
Translate a shell-like wildcard pattern to a compiled regular expression. Return the compiled regex. If 'is_regex' true, then 'pattern' is directly compiled to a regex (if it's a string) or just returned as-is (assumes it's a regex object). |
Class | _ |
Exclude previously-seen dirs from walk results, avoiding infinite recursion. Ref https://bugs.python.org/issue44497. |
Function | _find |
Find all files under 'path' |
Find all files under 'dir' and return the list of full filenames. Unless dir is '.', return full filenames with dir prepended.
Translate a shell-like glob pattern to a regular expression; return a string containing the regex. Differs from 'fnmatch.translate()' in that '*' does not match "special characters" (which are platform-specific).