Jacek Pliszka <jacek.plis...@gmail.com> added the comment:

Looks like the proper way to do it is described in the manual:
http://docs.python.org/dev/library/os.html#os.walk

for root, dirs, files in os.walk('python/Lib/email'):
    if 'CVS' in dirs:
        dirs.remove('CVS')  # don't visit CVS directories
    .....

I checked that it is covered by unit tests in /test_os.py so it is safe to use 
and bug can blo closed as invalid.

----------
resolution:  -> invalid

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12793>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to