Gettings subdirectories

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Wed May 3 15:02:42 EDT 2006


Florian Lindner enlightened us with:
> 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.

Why, doesn't your os.path.isdir() function work?

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list