reading files in folder

Geoffrey Mainland mainland at
Tue Jun 3 02:42:44 CEST 2003

I think os.path.walk is probably what you want. If you're new to Python
you should browse through the library reference so you have a general idea
of what's there.

On Tue, 03 Jun 2003 03:34:08 +0200, ataraxia2500 wrote:
> I would like to make a function that do something to all the text files that
> are in a folder and if that folder contains other folders with text files
> the functions would also modify those text files. 
> is there a simple function that do that?
> thanx in advance

More information about the Python-list mailing list