Gettings subdirectories

Lou Losee llosee at gmail.com
Thu May 4 15:50:01 CEST 2006


import os.path

os.path.isdir(file)

Lou

On 5/4/06, Philippe Martin <pmartin at snakecard.com> wrote:
>
> Hi,
>
> The second edition of "Programming Python - O'REILLY - Mark Lutz" shows
> how
> to do that using "os.path.walk"
>
> Philippe
>
>
>
>
>
> Florian Lindner wrote:
>
> > Hello,
> > how can I get all subdirectories of a given directories? os.listdir()
> > gives me all entries and I've found no way to tell if an object is a
> file
> > or a directory.
> >
> > Thanks,
> >
> > Florian
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



--
Artificial Intelligence is no match for Natural Stupidity
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060504/246b8733/attachment.html>


More information about the Python-list mailing list