mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
Synology NAS shares carry a `#recycle` folder at the root of every share, which RomM picked up as a platform directory. Add it to DEFAULT_EXCLUDED_DIRS, and make the exclusion list match glob patterns so the long-standing `.Trash-*` entry actually excludes anything. Exclusions are now applied before the directories are stat'ed, and a directory that raises OSError during Structure B detection is skipped with a warning instead of propagating. An unreadable folder used to bubble a 500 out of `/api/heartbeat`, which the frontend retried in a loop during first-time setup. Fixes #4043