Ian Bicking: the old part of his blog

Comment

This rocks! But it does not seem to work on win98. I tested the walk funtion with this little script:
8<---------
from path import path
import sys
p = path('c:\\')
for f in p.walk():
print f
------->8

It fails with this trace back:
8<---------
Traceback (most recent call last):
File "test.py", line 4, in ?
for f in p.walk():
File "D:\download\path\path.py", line 346, in walk
if child.isdir():
AttributeError: 'str' object has no attribute 'isdir'
------->8

Can anyone confirm this?
Comment on path module
by Fredrik