class documentation

class FileList(_FileList): (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method append Undocumented
Method exclude Exclude files that match 'pattern'.
Method extend Undocumented
Method global_exclude Exclude all files anywhere that match the pattern.
Method global_include Include all files anywhere in the current directory that match the pattern. This is very inefficient on large file trees.
Method graft Include all files from 'dir/'.
Method include Include files that match 'pattern'.
Method process_template_line Undocumented
Method prune Filter out files from 'dir/'.
Method recursive_exclude Exclude any file anywhere in 'dir/' that match the pattern.
Method recursive_include Include all files anywhere in 'dir/' that match the pattern.
Instance Variable files Undocumented
Instance Variable ignore_egg_info_dir Undocumented
Method _remove_files Remove all files from the file list that match the predicate. Return True if any matching files were removed
Method _repair Replace self.files with only safe paths
Method _safe_path Undocumented
def __init__(self, warn=None, debug_print=None, ignore_egg_info_dir=False): (source)

Undocumented

def append(self, item): (source)

Undocumented

def exclude(self, pattern): (source)

Exclude files that match 'pattern'.

def extend(self, paths): (source)

Undocumented

def global_exclude(self, pattern): (source)

Exclude all files anywhere that match the pattern.

def global_include(self, pattern): (source)

Include all files anywhere in the current directory that match the pattern. This is very inefficient on large file trees.

def graft(self, dir): (source)

Include all files from 'dir/'.

def include(self, pattern): (source)

Include files that match 'pattern'.

def process_template_line(self, line): (source)

Undocumented

def prune(self, dir): (source)

Filter out files from 'dir/'.

def recursive_exclude(self, dir, pattern): (source)

Exclude any file anywhere in 'dir/' that match the pattern.

def recursive_include(self, dir, pattern): (source)

Include all files anywhere in 'dir/' that match the pattern.

Undocumented

ignore_egg_info_dir = (source)

Undocumented

def _remove_files(self, predicate): (source)

Remove all files from the file list that match the predicate. Return True if any matching files were removed

def _repair(self): (source)

Replace self.files with only safe paths Because some owners of FileList manipulate the underlying ``files`` attribute directly, this method must be called to repair those paths.

def _safe_path(self, path): (source)

Undocumented