how to search directories under <PATH>

Haim Ashkenazi haim at babysnakes.org
Sat Jun 26 02:07:48 CEST 2004


Hi

I have to write a function that returns a list of all directories under
<PATH> (should work on linux and windows). it should be easy to write a
loop that goes through every directory... and so on, but I was wondering
if there's faster/more economic way, something like 'find <PATH> -type d'.
I couldn't find any 'find' module for python.

any ideas?

thanx
-- 
Haim






More information about the Python-list mailing list