reading files in folder

Geoffrey Mainland mainland at apeiron.net
Mon Jun 2 20:42:44 EDT 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.

http://www.python.org/doc/current/lib/module-os.path.html

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