Re: glob() that traverses a folder tree

2006-05-11 Thread seannakasone
awesome. thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: glob() that traverses a folder tree

2006-05-11 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > # i'm guessing os.walk() is the best way to traverse folder trees. > > import os, glob > > for dir, subdir, files in os.walk('.\InteropSolution'): >for file in files: > if glob.fnmatch.fnmatch(file,"*.dll") or > glob.fnmatch.fnmatch(file,"*.exe"): > p

Re: glob() that traverses a folder tree

2006-05-10 Thread seannakasone
# i'm guessing os.walk() is the best way to traverse folder trees. import os, glob for dir, subdir, files in os.walk('.\InteropSolution'): for file in files: if glob.fnmatch.fnmatch(file,"*.dll") or glob.fnmatch.fnmatch(file,"*.exe"): print dir+file -- http://mail.python.org/m