Newbie question on 'cmpfiles':

Dave Brueck dbrueck at
Tue Dec 5 15:48:22 CET 2000

Hi Hari,
I haven't really used this module, so this may not help too much:

common is a list of filenames that exist in both directories. Depending on
what you need, maybe you shouldn't call that function at all (instead use
filecmp.cmp to compare two files, and create a filecmp.dircmp object to
compare the contents of two directories).


> -----Original Message-----
> From: python-list-admin at
> [mailto:python-list-admin at]On Behalf Of harisri at
> Sent: Monday, December 04, 2000 10:59 PM
> To: python-list at
> Subject: Newbie question on 'cmpfiles':
> Hello,
> I am a newbie user to python 2.0
> Can someone help me by explaining 'cmpfiles' function with a simple
> example?
> I am trying to compare 2 directories, but not sure about the syntaxof
> this function. The "Python Reference Library" did not help me on this.
> [What does "common" mean in "cmpfiles(dir1, dir2, common)"?]
> Thanks in advance,
> Hari.
> Sent via
> Before you buy.
> --

More information about the Python-list mailing list