Gettings subdirectories

Philippe Martin pmartin at snakecard.com
Thu May 4 08:42:41 EDT 2006


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




More information about the Python-list mailing list