mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
exclude_single_files collected every excluded name into a list, then filtered the input against it with `f not in excluded_files`. That membership test rescans the list once per file, so a platform folder holding tens of thousands of loose files spends most of the call in list scans rather than pattern matching. Decide per file in a single pass instead. Behavior is unchanged, including for duplicate file names. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TLTDjv3niosCXZWtjKELK2