module documentation

distutils.filelist Provides the FileList class, used for poking about the filesystem and building lists of files.

Class FileList 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_to_re 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_pattern 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 _UniqueDirs Exclude previously-seen dirs from walk results, avoiding infinite recursion. Ref https://bugs.python.org/issue44497.
Function _find_all_simple Find all files under 'path'
def findall(dir=os.curdir): (source)

Find all files under 'dir' and return the list of full filenames. Unless dir is '.', return full filenames with dir prepended.

def glob_to_re(pattern): (source)

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).

def translate_pattern(pattern, anchor=1, prefix=None, is_regex=0): (source)

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).

def _find_all_simple(path): (source)

Find all files under 'path'