Message147334
The 3-tuple values yielded by os.walk could be made easier to work with in some use cases by offering a namedtuple style interface (similar to what is done with sys.float_info).
for dirinfo in os.walk(base_dir):
print(dirinfo.path)
print(dirinfo.subdirs)
print(dirinfo.files) |
|
Date |
User |
Action |
Args |
2011-11-09 07:22:39 | ncoghlan | set | recipients:
+ ncoghlan |
2011-11-09 07:22:38 | ncoghlan | set | messageid: <1320823358.89.0.0610537790817.issue13375@psf.upfronthosting.co.za> |
2011-11-09 07:22:38 | ncoghlan | link | issue13375 messages |
2011-11-09 07:22:37 | ncoghlan | create | |
|