The files encountered by os.rename disappear

I recently wanted to rename the pictures in a folder, and finally found that only 42 pictures were left of the original 78 pictures after the rename, and then I debugged the program,

If the new name is found, the old name will be updated. If the new name is the same as the name of the picture file in your original folder, the new one will replace the picture with the same name before.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325355843&siteId=291194637