Commit 14dadda
fix: only apply Windows path-equivalence rules on Windows
claim_key folded backslashes into forward slashes on every platform. On POSIX a
backslash is an ordinary filename character, so "a\b.mp4" and "a/b.mp4" are
different files that would have compared equal -- a false collision, and a
rename the caller never asked for.
Case folding was already Windows-only; make the separator handling match and
compare byte-exact elsewhere.
The unit test asserted the Windows rules unconditionally and so failed on the
macOS runners. Split it: Windows keeps the equivalence assertion, POSIX asserts
the two paths stay distinct.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 8a494c0 commit 14dadda
2 files changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | | - | |
39 | 41 | | |
40 | | - | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
66 | 77 | | |
67 | 78 | | |
68 | 79 | | |
| |||
0 commit comments