[Tutor] Reading directory contents

Gus Tabares gus.tabares at verizon.net
Fri Aug 29 13:27:06 EDT 2003


On Fri, 2003-08-29 at 06:18, Mike Wagman wrote:
> I need some code to load and parse file directories. Can anyone either
> send me some sample code, or a site that talks about this issue. 

Hi Mike,

	You might want to take a look at listdir function in the os module. It
returns a list of filename strings in the current working directory.


-- 
Gus Tabares




More information about the Tutor mailing list