Re: os.path.walk usage on WinXP

2007-07-26 Thread Alex Popescu
Alex Popescu <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hi all! > > I am trying to use the os.path.walk function, but I am getting a weird > error: > > def _walk(dir_name): > def selector(arg, dirname, fnames): > print "selector" > > os.path.walk(dir_name, selector, None) >

Re: os.path.walk usage on WinXP

2007-07-26 Thread Alex Popescu
Alex Popescu <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hi all! > > I am trying to use the os.path.walk function, but I am getting a weird > error: > > def _walk(dir_name): > def selector(arg, dirname, fnames): > print "selector" > > os.path.walk(dir_name, selector, None) >

os.path.walk usage on WinXP

2007-07-26 Thread Alex Popescu
Hi all! I am trying to use the os.path.walk function, but I am getting a weird error: def _walk(dir_name): def selector(arg, dirname, fnames): print "selector" os.path.walk(dir_name, selector, None) File "C:\zengarden\python\python25\lib\ntpath.py", line 325, in walk names = os.list