Newbie: easiest way of renaming a file

Alex alex at somewhere.round.here
Tue Mar 14 14:46:40 EST 2000


> I want to rename a lot of files with a Python-program. Is it necessary
> to read the whole file, write it to a new file and then delete the
> original file?

Check out rename, in the os module.

Alex.



More information about the Python-list mailing list