The dircmp module

(Obsolete, only in 1.5.2). This module provides a class that can be used to compare the contents of two disk directories.

Example: Using the dircmp module
# File:

import dircmp

d = dircmp.dircmp()"samples", "oldsamples")

$ python
diff samples oldsamples
Only in samples : ['sample.aiff', '', 'sample.wav']
Identical files : ['sample.gif', 'sample.gz', 'sample.jpg', ...]

In Python 2.0 and later, this module has been replaced by the filecmp module.


A Django site. rendered by a django application. hosted by webfaction.