directory

Shagshag13 shagshag13 at yahoo.fr
Tue Jun 4 20:56:34 CEST 2002


"Chris Liechti" <cliechti at gmx.net> a écrit dans le message de news: Xns9223D3529DC59cliechtigmxnet at 62.2.16.82...
> Gold Fish <occeanlinux at linuxmail.org> wrote in
> news:3cfcfd4a_1 at news.iprimus.com.au:
>
> > How to read the subdirectories in the directory

> (probably because os.listdir returns only file-/diectorynames and not
> paths)
>
> look at os.path.walk(), it's there to solve your problem ;-)
>
> chris

here uou'll find an example :
http://aspn.activestate.com/ASPN/Mail/Message/541112

and you could aslo look at :
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52664

s13.





More information about the Python-list mailing list