Erlend J. Leiknes
nookieNO_SP_AM at online.no
Tue Jun 4 18:57:52 EDT 2002
you forgot the ending /
"Gold Fish" <occeanlinux at linuxmail.org> wrote in message
news:3cfcfd4a_1 at news.iprimus.com.au...
> How to read the subdirectories in the directory
> Support i have the directory /home/ which have some subdirectories
> I am using os.listdir('/home/') to read in the list so it will be
> ['sub1','sub2','sub3'] now i want to read inside the sub directory sub2
> once again i using os.listdir(os.listdir('/home/')) but it came out
> an errors: not a file or directory. Can anyone tell me what did i wrong.
> Anh how to fix it.
More information about the Python-list