The dircmp Module

(Obsolete, Only in 1.5.2) The dircmp module provides a class that can be used to compare the contents of two disk directories, as Example 14-18 shows.

Example 14-18. Using the dircmp Module

import dircmp

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

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

Core Modules

More Standard Modules

Threads and Processes

Data Representation

File Formats

Mail and News Message Processing

Network Protocols


Multimedia Modules

Data Storage

Tools and Utilities

Platform-Specific Modules

Implementation Support Modules

Other Modules

Python Standard Library
Python Standard Library (Nutshell Handbooks) with
ISBN: 0596000960
EAN: 2147483647
Year: 2000
Pages: 252
Authors: Fredrik Lundh © 2008-2020.
If you may any questions please contact us: