Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python rename file

import os

old_file_name = "/home/career_karma/raw_data.csv"
new_file_name = "/home/career_karma/old_data.csv"

os.rename(old_file_name, new_file_name)

print("File renamed!")
Source by careerkarma.com #
 
PREVIOUS NEXT
Tagged: #python #rename #file
ADD COMMENT
Topic
Name
4+9 =