Newbie: easiest way of renaming a file

Mike Fletcher mfletch at
Tue Mar 14 20:06:07 CET 2000

Index of modules (including the os module)

Documentation index...

The particular function os.rename ...


-----Original Message-----
From: Lars Hoeyrup Jensen [mailto:robinhat at]
Sent: Tuesday, March 14, 2000 1:50 PM
To: python-list at
Subject: Newbie: easiest way of renaming a file

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?

I have tried to search the newsgroup archives but couldn't find



More information about the Python-list mailing list