Package distutils :: Module filelist
[hide private]
[frames] | no frames]

Module filelist

distutils.filelist

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

Classes [hide private]
FileList
A list of files built by on exploring the filesystem and filtered by applying various patterns to what we find there.
Functions [hide private]
 
findall(dir='.')
Find all files under 'dir' and return the list of full filenames (relative to 'dir').
 
glob_to_re(pattern)
Translate a shell-like glob pattern to a regular expression; return a string containing the regex.
 
translate_pattern(pattern, anchor=1, prefix=None, is_regex=0)
Translate a shell-like wildcard pattern to a compiled regular expression.
Variables [hide private]
  __revision__ = '$Id: filelist.py 37828 2004-11-10 22:23:15Z lo...

Imports: os, string, re, fnmatch, IntType, TypeType, BooleanType, CodeType, UnboundMethodType, StringType, BuiltinMethodType, FloatType, DictionaryType, NotImplementedType, BuiltinFunctionType, DictProxyType, GeneratorType, InstanceType, ObjectType, DictType, GetSetDescriptorType, FileType, EllipsisType, StringTypes, ListType, MethodType, TupleType, ModuleType, FrameType, LongType, BufferType, TracebackType, ClassType, MemberDescriptorType, UnicodeType, SliceType, ComplexType, LambdaType, FunctionType, XRangeType, NoneType, glob, convert_path, DistutilsTemplateError, DistutilsInternalError, log


Function Details [hide private]

glob_to_re(pattern)

 

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

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

 

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


Variables Details [hide private]

__revision__

Value:
'$Id: filelist.py 37828 2004-11-10 22:23:15Z loewis $'