I want to move and overwrite file to another folder which has the same file:
d_folder = shutil.move(min_file, d_folder)
print("File is moved successfully to: ", d_folder)
Shutil move does not overwrite the file. Is there another way to move and overwrite the file?
shutil.Error: Destination path 'C:\\g.txt' already exists