[solved] "The destination has 12 files with the same names."
-
This started out as a question post but in documenting it I've come across the solution. I kept getting a problem when backing up over network share. It tells me there are a handful of files that already exist in the destination, and interrupts the transfer until I choose what to do with the duplicates. This is strange because I am backing up into an empty folder that I have just created, there should not be any files in the destination.
I tracked it down to a handful of files in
configs/all/retroarch/assets
that are duplicated with bothXbox
andXBOX
capitalization. These are in fact duplicates, each of the 12 files (six each inxmb/monochrome/png
andozone/png/icons
) with theXBOX
spelling are identical to the corresponding file withXbox
in the same location:pi@retropie:/opt/retropie/configs/all/retroarch/assets/xmb/monochrome/png $ diff -s "Microsoft - Xbox.png" "Microsoft - XBOX.png" Files Microsoft - Xbox.png and Microsoft - XBOX.png are identical
Files with
XBOX
are present on theretropie-buster-4.7.1-rpi4_400.img.gz
image; files withXbox
are copied when updating or reinstalling RetroArch. Since Windows is case-insensitive, these are seen as the same filename, hence the conflict.To reproduce: write the
retropie-buster-4.7.1-rpi4_400.img.gz
image to a card, then update the Setup script and update RetroArch. Then copy theconfigs
folder over Samba-shares into an empty folder on a Windows PC.To remedy: delete the existing
/opt/retropie/configs/all/retroarch/assets
directory, then update or re-install RetroArch. Or just delete all files with the all-capsXBOX
spelling:find /opt/retropie/configs/all/retroarch/assets -name "*XBOX*" -exec rm {} \;
To prevent: make sure to only use the
Xbox
spelling on distributed image in future release. -
Looks like the upstream libretro assets repository renamed them and the upgrade script just adds the new files, without removing the older ones. Maybe we should clear up the folder before the upgrade, to avoid this issue.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.