mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-13 04:51:38 -10:00
Backups go under the assets directory, wherever saves live. A rename fails when those are on different volumes, or on Android when saves are in a SAF folder, and the file then was not backed up: non-destructive mode gave up on replacing it. Fall back to copying the file and removing the original. If it cannot be removed, drop the copy and report the failure, as the caller relies on the local file being gone. cloudsync_commit_test covers both a replaced and a removed file with such a rename refused.