Skip to content

Reattach a folder source whose paths were recorded on another system - #203

Merged
abrignoni merged 1 commit into
mainfrom
fix/relink-windows-paths
Sep 26, 2026
Merged

abrignoni merged 1 commit into
mainfrom
fix/relink-windows-paths

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Fixes Reattach to source refusing every file when the case was made on another system.

  • A case made on Windows records C:\ paths. On macOS and Linux those read as one file name with no folders, so no common folder was found and each file was looked for under its full Windows path. Recorded Windows paths are now read as Windows paths wherever the case is opened.
  • Each file is still checked for the same relative path, size and MD5 before anything changes.
  • The unattached banner now names the old folder instead of "its folder".

Tested on a copy of a real Windows-made case: all 14,656 Project VIC files reattached on macOS. The new tests fail on the old code.

🤖 Generated with Claude Code

A case made on Windows records C:\ paths. On macOS and Linux os.path
reads each one as a single file name with no folders, so Reattach found
no common folder, looked for the whole Windows path inside the chosen
folder, and refused every file. The recorded paths are now read with
ntpath when they are Windows paths, whatever system the case is opened
on, and each file is still checked for size and MD5 before anything
changes. The banner now names the old folder too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni enabled auto-merge September 26, 2026 18:57
@abrignoni
abrignoni merged commit 1cc30e9 into main Sep 26, 2026
8 checks passed
@abrignoni
abrignoni deleted the fix/relink-windows-paths branch September 28, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant