I'm trying to duplicate a file in python.
Going through shutil, I've only found solutions to copy and move the files but I need to duplicate a file to rename and keep the original.
photos54_TempString = "photos54/thumb-" + artistName + "_54.jpg"
photos54_NewString = "quickManik_Music/" + songID + "-" +
artistName + "_54.jpg"
copyfile(photos54_TempString, photos54_NewString)
shutil.copy(photos54_TempString, photos54_NewString)is incorrect?shutil.move