Template request | Bug report | Generate Data Product
Tags: #os #python #snippet #operations
Author: Divakar
Description: This notebook will show how to rename file using os library.
References:
import os
input_file_path
: input file pathoutput_file_path
: output file path
input_file_path = "test1.ppt"
output_file_path = "test2.ppt"
os.rename(input_file_path, output_file_path)
print(f"File {input_file_path} successfully renamed: {output_file_path}!")