How to compare two directories?

could ildg could.net at gmail.com
Thu Jun 30 08:14:43 EDT 2005


I found dircmp compare only the direct dirs and files,
and it will not do anything to the sub-directories.

On 6/29/05, Michael Hoffman <cam.ac.uk at mh391.invalid> wrote:
> could ildg wrote:
> > I want to compare 2 directories,
> > and find If all of theire sub-folders and files and sub-files are identical.
> > If not the same, I want know which files or folders are not the same.
> > I know filecmp moudle has cmpfiles function and a class named dircmp,
> > they may help, but I wonder if there is a ready-to-use function in python libs?
> 
> That's a good start. Why doesn't dircmp work for you?
> --
> Michael Hoffman
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list