RetroArch's Cloud Sync also offers a config/, thumbnails/, and system/
category alongside saves/states, none of which belong to a ROM. The
previous behavior rejected them with 409 so RetroArch would keep retrying
locally instead of losing data. This stores them as plain per-user files
under CLOUD_SYNC_BLOB_BASE_PATH (FSCloudSyncBlobHandler) instead, namespaced
by user so two RetroArch installs syncing to the same RomM instance under
different accounts don't clobber each other's files, and includes them in
the manifest alongside saves/states.
RetroArch's cloud-sync driver diffs a JSON manifest of {path, hash} entries
and then GETs/PUTs/DELETEs individual files, so it needs only a narrow slice
of WebDAV and never issues PROPFIND. Expose that slice at /api/cloud-sync so
save files and states sync straight into RomM's existing asset storage.
Assets are matched to a ROM by file name, and the optional core folder maps to
the emulator field that already namespaces asset storage. The router gates
itself rather than using @protected_route, so it can answer a 401 challenge
instead of a 403, and error responses carry no body because RetroArch's client
mishandles large ones.
Closes#2313
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>