os.path.walk arg

Afanasiy abelikov72 at hotmail.com
Thu Mar 13 18:00:55 CET 2003


On Thu, 13 Mar 2003 08:52:22 -0800, "Matt Gerrans"
<mgerrans at mindspring.com> wrote:

>I like to do my path walking from a class, so that argument is always self,
>like so, in a method:
>
>   os.path.walk( startPath, MyPathWalkerClassName.__walker, self )

I don't completely understand that, but I just do...

  os.path.walk(self.content,self.processcontent,None)




More information about the Python-list mailing list