Get all subdirs

Florian Lindner Florian.Lindner at xgm.de
Sun Aug 29 09:02:00 EDT 2004


Hello,
how can I get all subdirectories of a given directory. os.listdir(dir)
doesn't differentiate between directories and files, os.walk seems to me a
bit overkill since it also descends in the subdirs.
Thx,
Florian



More information about the Python-list mailing list