You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stop Remux and Lowercase Renames From Overwriting an Existing File #1073
Convert.ReMuxToMkv() moves its output to the input name with a .mkv extension, with overwrite on. Remuxing name.avi replaces an existing name.mkv without a warning.
ProcessFile.MakeExtensionLowercase() renames name.MKV to name.mkv with overwrite on. On a case-sensitive filesystem that replaces an existing name.mkv.
Reproduction shape
Create a folder holding both name.avi and name.mkv, with ReMux: true and .avi in ReMuxExtensions.
Run process.
name.mkv is replaced by the remuxed name.avi.
Expected
A rename that would replace a different existing file fails that file, or picks a non-colliding name, rather than overwriting.
Found while drawing the process command diagrams, ARCHITECTURE.md "Process Command Logic", suspect branch S6.
Decision from the maintainer (2026-10-30): when a rename or move would land on a file that already exists, fail the file.
Claim (backlog burndown round 1, fixed together with #1109): branch feature/1073-1109-rename-collisions, files PlexCleaner/ProcessFile.cs, PlexCleaner/Convert.cs, new PlexCleanerTests/RenameCollisionTests.cs. ARCHITECTURE.md and HISTORY.md are deferred to one final docs pull request by the maintainer's choice, so this group does not touch them.
Updated decision from the maintainer (2026-10-30), replacing the one above: fail the file without deleting it. A collision marks the file failed but skipped, the same as the exception and read-only paths, so DeleteFailedFile() never runs. The collision is checked before the remux tool runs. Nothing is overwritten or deleted.
Activity
ptr727 commentedon Oct 31, 2026
Decision from the maintainer (2026-10-30): when a rename or move would land on a file that already exists, fail the file.
Claim (backlog burndown round 1, fixed together with #1109): branch
feature/1073-1109-rename-collisions, filesPlexCleaner/ProcessFile.cs,PlexCleaner/Convert.cs, newPlexCleanerTests/RenameCollisionTests.cs.ARCHITECTURE.mdandHISTORY.mdare deferred to one final docs pull request by the maintainer's choice, so this group does not touch them.ptr727 commentedon Oct 31, 2026
Updated decision from the maintainer (2026-10-30), replacing the one above: fail the file without deleting it. A collision marks the file failed but skipped, the same as the exception and read-only paths, so
DeleteFailedFile()never runs. The collision is checked before the remux tool runs. Nothing is overwritten or deleted.Fail a Rename Onto an Existing File and Undo a Partial Rename (#1119)