GNU Info

Info Node: (python2.1-lib.info)dircmp class

(python2.1-lib.info)dircmp class


Prev: filecmp Up: filecmp
Enter node , (file) or (file)node

The `dircmp' class
------------------

`dircmp(a, b[, ignore[, hide]])'
     Construct a new directory comparison object, to compare the
     directories A and B. IGNORE is a list of names to ignore, and
     defaults to `['RCS', 'CVS', 'tags']'. HIDE is a list of names to
     hide, and defaults to `[os.curdir, os.pardir]'.

`report()'
     Print (to `sys.stdout') a comparison between A and B.

`report_partial_closure()'
     Print a comparison between A and B and common immediate
     subdirctories.

`report_full_closure()'
     Print a comparison between A and B and common subdirctories
     (recursively).

`left_list'
     Files and subdirectories in A, filtered by HIDE and IGNORE.

`right_list'
     Files and subdirectories in B, filtered by HIDE and IGNORE.

`common'
     Files and subdirectories in both A and B.

`left_only'
     Files and subdirectories only in A.

`right_only'
     Files and subdirectories only in B.

`common_dirs'
     Subdirectories in both A and B.

`common_files'
     Files in both A and B

`common_funny'
     Names in both A and B, such that the type differs between the
     directories, or names for which `os.stat()' reports an error.

`same_files'
     Files which are identical in both A and B.

`diff_files'
     Files which are in both A and B, whose contents differ.

`funny_files'
     Files which are in both A and B, but could not be compared.

`subdirs'
     A dictionary mapping names in `common_dirs' to `dircmp' objects.

Note that via `__getattr__()' hooks, all attributes are computed
lazilly, so there is no speed penalty if only those attributes which
are lightweight to compute are used.


automatically generated by info2www version 1.2.2.9