TECHIES WORLD

For Techs.... Techniques.... Technologies....

LinuxPython

Rename file in Python

Os module provides the functionality to rename files.

import os
os.rename(old_name,new_name)

Replace the old_name,new_name accordingly.

Leave a Reply