does anyone know why the os.path.walk() function would fail in the middle of reading the names of a directory under windows? I call it from the ineractive interpreter and it prints a portion of the names list that should get sent to the visit() func

Richard Brodie R.Brodie at rl.ac.uk
Mon Mar 17 21:57:53 CET 2003


"Charles Harrison" <cah7k at virginia.edu> wrote in message
news:ab72100f.0303171251.184e848b at posting.google.com...
> does anyone know why the os.path.walk() function would fail in the
> middle of reading the names of a directory under windows?  I call it
> from the ineractive interpreter and it prints a portion of the names
> list that should get sent to the visit() function, but the list ends
> in the middle of one of the names and there is no ']' on the end of
> the list, but it doesnt return an error

Is that under Pythonwin? It can be a bit funny with outputting long
lines to the window. Try outputting slices from the list, or splitting
to several lines.






More information about the Python-list mailing list