Message143275
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. |
|
Date |
User |
Action |
Args |
2011-08-31 18:34:32 | Jacek.Pliszka | set | recipients:
+ Jacek.Pliszka, rhettinger, eric.araujo |
2011-08-31 18:34:32 | Jacek.Pliszka | set | messageid: <1314815672.68.0.903645604351.issue12793@psf.upfronthosting.co.za> |
2011-08-31 18:34:32 | Jacek.Pliszka | link | issue12793 messages |
2011-08-31 18:34:31 | Jacek.Pliszka | create | |
|