recursive file editing

Josiah Carlson jcarlson at uci.edu
Sat Apr 3 20:22:04 EST 2004


> for thing in os.walk('mydir'):
> 	file(thing,mode=r+)

for thing in os.walk('mydir'):
     filehandle = file(thing, 'r+')


  - Josiah



More information about the Python-list mailing list