> I have the following code to traverse a directory structure from a
> given path:
I'm not sure what you are using the browse function for.
Normally with path.walk you would use browse)() to modify
the namelist argument value and thus modify the path walked
by path.walk(). You appear to be trying
Jorge Louis De Castro wrote:
> Hi all,
>
> I have the following code to traverse a directory structure from a given
> path:
>
> import os, fnmatch, re
> folders = []
> r = re.compile(r'file_filter') # msn_username is passed by the user
>
> def browse(junk, dirpath, namelist):
> for name in na
Hi all,
I have the following code to traverse a directory structure from a given
path:
import os, fnmatch, re
folders = []
r = re.compile(r'file_filter') # msn_username is passed by the user
def browse(junk, dirpath, namelist):
for name in namelist:
if r.search(name):
folders.append