mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
A rejected upload could still promote a single-file ROM to a folder because the collision check ran after the promotion, and two completions racing for the same name could overwrite each other through Path.replace. The collision is now checked first, including the lone file's own name, and the final path is created with O_EXCL before the move. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017WbesTQXohyAWWcLV5iiEN