Files
romm/backend/tests/models
Sam Dornan 3422362d22 fix(backend): detect top-level rom files at any folder depth (#4776)
RomFile.is_top_level guessed whether a file sat inside a rom folder from
the number of slashes in its path, which only held for a two-level
platform folder like roms/ps2. A single-file rom deeper than that (or a
multi-file rom under a one-level folder) was never top level, so Hasheous,
Playmatch and ScreenScraper dropped its hashes and logged "No hashes
provided". Compare against the rom's path directly, matching the
top_level_file_count subquery.

Fixes #4775


Claude-Session: https://claude.ai/code/session_01SuQigfa5DhLqeA8XBnYPUk

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 14:26:19 -05:00
..