[Tutor] os.path.walk

nimrodx nimrodx at slingshot.co.nz
Tue Aug 22 13:59:43 CEST 2006


Hi All,

I was wondering if anyone had used os.path.walk within a class or not, 
and what are the pitfalls...

What has got me worried is that the function called by os.path.walk  
must be a method of the class.
Now this means it will have something like this as a def:

def func_called_by_walk(self, arg, directory, names):

Will this work with os.path.walk with that definition?

Thanks,

Matt


More information about the Tutor mailing list