Iterating all files in a directory

Mongryong Mongryong at sympatico.ca
Sun Jan 26 02:32:40 CET 2003


In particular, I would like to obtain the names of all the files that
end in a certain suffix (ie. .txt).

On Sat, 2003-01-25 at 20:20, Mongryong wrote:
> How can iterate through all the files in a directory?
> 
> ie. obtain a list of all the file's name 
> 
> Thanks.
> 
> 
> 
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list







More information about the Python-list mailing list