Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | phase0 |
def | __getattr__ |
def | phase1 |
def | phase2 |
def | phase3 |
def | phase4 |
def | phase4_closure |
def | report |
def | report_partial_closure |
def | report_full_closure |
Data Fields | |
left | |
right | |
hide | |
ignore | |
left_list | |
right_list | |
common | |
left_only | |
right_only | |
common_dirs | |
common_files | |
common_funny | |
funny_files | |
subdirs | |
A class that manages the comparison of 2 directories. dircmp(a,b,ignore=None,hide=None) A and B are directories. IGNORE is a list of names to ignore, defaults to ['RCS', 'CVS', 'tags']. HIDE is a list of names to hide, defaults to [os.curdir, os.pardir]. High level usage: x = dircmp(dir1, dir2) x.report() -> prints a report on the differences between dir1 and dir2 or x.report_partial_closure() -> prints report on differences between dir1 and dir2, and reports on common immediate subdirectories. x.report_full_closure() -> like report_partial_closure, but fully recursive. Attributes: left_list, right_list: The files in dir1 and dir2, filtered by hide and ignore. common: a list of names in both dir1 and dir2. left_only, right_only: names only in dir1, dir2. common_dirs: subdirectories in both dir1 and dir2. common_files: files in both dir1 and dir2. common_funny: names in both dir1 and dir2 where the type differs between dir1 and dir2, or the name is not stat-able. same_files: list of identical files. diff_files: list of filenames which differ. funny_files: list of files which could not be compared. subdirs: a dictionary of dircmp objects, keyed by names in common_dirs.
Definition at line 85 of file filecmp.py.
def __init__ | ( | self, | |
a, | |||
b, | |||
ignore = None , |
|||
hide = None |
|||
) |
Definition at line 119 of file filecmp.py.
def __getattr__ | ( | self, | |
attr | |||
) |
Definition at line 145 of file filecmp.py.
References dircmp.__p0_attrs, dircmp.__p1_attrs, dircmp.__p2_attrs, dircmp.__p3_attrs, dircmp.__p4_attrs, dircmp.phase0(), dircmp.phase1(), dircmp.phase2(), dircmp.phase3(), and dircmp.phase4().
def phase0 | ( | self) |
Definition at line 131 of file filecmp.py.
def phase1 | ( | self) |
Definition at line 160 of file filecmp.py.
References dircmp.left_list, and dircmp.right_list.
def phase2 | ( | self) |
Definition at line 180 of file filecmp.py.
def phase3 | ( | self) |
Definition at line 215 of file filecmp.py.
References filecmp.cmpfiles(), dircmp.common_files, dircmp.left, and dircmp.right.
def phase4 | ( | self) |
Definition at line 219 of file filecmp.py.
def phase4_closure | ( | self) |
def report | ( | self) |
Definition at line 234 of file filecmp.py.
References dircmp.common_dirs, dircmp.common_funny, dircmp.funny_files, dircmp.left, dircmp.left_only, dircmp.right, and dircmp.right_only.
def report_full_closure | ( | self) |
def report_partial_closure | ( | self) |
common |
Definition at line 176 of file filecmp.py.
common_dirs |
Definition at line 181 of file filecmp.py.
common_files |
Definition at line 182 of file filecmp.py.
common_funny |
Definition at line 183 of file filecmp.py.
funny_files |
Definition at line 217 of file filecmp.py.
hide |
Definition at line 123 of file filecmp.py.
ignore |
Definition at line 127 of file filecmp.py.
left |
Definition at line 120 of file filecmp.py.
left_list |
Definition at line 132 of file filecmp.py.
left_only |
Definition at line 177 of file filecmp.py.
right |
Definition at line 121 of file filecmp.py.
right_list |
Definition at line 134 of file filecmp.py.
right_only |
Definition at line 178 of file filecmp.py.
subdirs |
Definition at line 223 of file filecmp.py.