os.rename for a specific path python 3 code example
Example 1: os.rename
os.rename(src, dst)
Example 2: how to rename files python
import os
os.rename(r'C:\Users\Ron\Desktop\Test\Products.txt',r'C:\Users\Ron\Desktop\Test\Shipped Products.txt')
os.rename(src, dst)
import os
os.rename(r'C:\Users\Ron\Desktop\Test\Products.txt',r'C:\Users\Ron\Desktop\Test\Shipped Products.txt')