I'm trying to do a directory search on a networked drive through windows, but I only need to search one or two levels deep in a part of the directory tree, which spans many thousands of directories wide up to maybe 10 directories deepIs there any existing utility that will do this?or is it Python to the rescue!
6/19/2007 3:50:10 PM
quick and dirty solution:
import osfor dir1 in os.listdir(os.getcwd()): for dir2 in os.listdir(dir1): print dir1 + '\\' + dir2
6/19/2007 4:10:57 PM