Gettings subdirectories

Edward Elliott nobody at 127.0.0.1
Wed May 3 19:28:41 EDT 2006


Ben Finney wrote:
> We must be reading different Python websites.
> 
>     walk(top[, topdown=True  [, onerror=None]])
> 
>     walk() generates the file names in a directory tree, by walking
>     the tree either top down or bottom up. For each directory in the
>     tree rooted at directory top (including top itself), it yields a
>     3-tuple (dirpath, dirnames, filenames).

Maybe he meant os.path.walk, although that's still not quite what he had.




More information about the Python-list mailing list