This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jacek.Pliszka
Recipients Jacek.Pliszka, eric.araujo, rhettinger
Date 2011-08-31.18:34:31
SpamBayes Score 0.00022409846
Marked as misclassified No
Message-id <1314815672.68.0.903645604351.issue12793@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-08-31 18:34:32Jacek.Pliszkasetrecipients: + Jacek.Pliszka, rhettinger, eric.araujo
2011-08-31 18:34:32Jacek.Pliszkasetmessageid: <1314815672.68.0.903645604351.issue12793@psf.upfronthosting.co.za>
2011-08-31 18:34:32Jacek.Pliszkalinkissue12793 messages
2011-08-31 18:34:31Jacek.Pliszkacreate