Wednesday, August 14, 2013

Python - Rename a file

To rename a file using python:

>>> import os
>>> os.rename(oldfilepath, newfilepath)

It's just useful!