mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
A platform folder created on disk (optionally bound in Library Management) has no database row until its first scan imports a ROM, so it was invisible to the scan platform picker and a first scan could not be triggered for it. The picker also filtered to rom_count > 0, hiding even zero-ROM database platforms (e.g. those created via romm-cli). Backend: - Add GET /platforms/filesystem returning folders on disk without a database row yet (locally-resolved metadata, id -1, rom_count 0). - scan_platforms / the scan socket now accept platform_fs_slugs so a folder can be scanned by slug; database platforms stay accepted by id. Frontend (v2): - Fetch filesystem folders, key the scan picker by fs_slug, include zero-ROM database platforms, and tag never-scanned folders. Fixes #3832 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>