D wrote:
Hello,How can one exclude a directory (and all its subdirectories) when running os.walk()? Thanks, Doug
for base, dirs, files in os.walk('wherever'):
if 'RCS' in dirs:
dirs.remove('RCS')
As described in the os.walk docs.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
