Just want to walk a single directory

SB stevebnospam428 at hotmail.com
Sat Jan 14 18:25:05 EST 2006


Thanks Tim, this definitely does it. I was trying to prevent having to 
spend time absorbing the core of how generators work, because this simple 
is all I need to do, and I don't have the updated python cookbook book. The 
one I have discussed the old os.path.walk.



Tim Peters <tim.peters at gmail.com> wrote in 
news:mailman.522.1137279686.27775.python-list at python.org:

> thebasedir = "C:\\tmpold"
>     for dummy, dummy, permanentFilelist in os.walk(thebasedir):
>         break




More information about the Python-list mailing list