Lee Cantey
Fri, 13 Jul 2001 14:50:01 -0700
>>>>> On Fri Jul 13, Lee writes:
> def find_cvs_dirs (start_dir):
> def callback(arg, directory, files):
> for file in files:
> if os.path.isdir(file) and file == "CVS":
> arg.append(os.path.join(directory, file))
> dirs = [] os.path.walk(".", callback, dirs) return dirs
Grrr, I should know better than to not look it over before posting.
The "." in os.path.walk should really be start_dir though it doesn't
matter in this particular case since "." is always passed in to
find_cvs_dirs.
Lee.