[Tutor] fast recursive directory compares

Terence Lo tlo@aw.sgi.com
Tue Dec 31 14:34:02 2002


Ok, suppose that i have directories Dir1 and Dir2 which each contain
multiple nested subdirectories.
i'm trying to generate a listing of files that are

1) present in dir1 but not present in dir2 *and*
2) present in dir2 but not present in dir1.

what i'd like to do is something similar to what xdiff does when comparing
two files.

i have a process in place, but it is quite slow and i am trying to find a
faster way.

any ideas?

if there isn't any python code which does this easily, i might just write my
own :)

thx in advance. happy new year everybody.

-T