looping over the files in a directory

Elaine Jackson elainejackson7355 at home.com
Fri May 14 11:32:32 EDT 2004


Can anyone please tell me the actual syntax for saying something like this:

for <file> in <directory>:
    <do something with the file>

(?) Muchas gracias.

Peace





More information about the Python-list mailing list