How filecmp walk into subdirectories?

Muddy Coder cosmo_general at yahoo.com
Tue Nov 1 22:59:10 EDT 2011


Hi Folks,


I tried to compare two directories, each with hundreds of files in
multiple level subdirectories, to find out the different files. I used
filecmp module to the job as:


comp=filecmp.dircmp(adir, bdir)
comp.report()

It worked, and printed out the identical and different files. However,
it did not go through the directory trees, just did the job in the
first level. I wonder somebody can help? Thanks in advance!


Cosmo



More information about the Python-list mailing list