How to compare to directories?

could.net at gmail.com could.net at gmail.com
Wed Sep 13 02:09:36 EDT 2006


I want to compare 2 directories: dir1 and dir2.
What I want to do is to get these informations:
1. does they have the same number of files and sub-directories?
2. does each file with the same name have the same size and date
information?

So, how can I do it in python?
Thank you!




More information about the Python-list mailing list