change extensions

Gerhard Häring gh at ghaering.de
Mon Apr 4 19:39:03 EDT 2005


Bob Then wrote:
> how can i change all files from one extension to another within a direcory?

Using os.listdir, os.path.split and os.rename.

-- Gerhard



More information about the Python-list mailing list