Repository navigation
Reattach a folder source whose paths were recorded on another system - #203
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Reattach to source refusing every file when the case was made on another system.
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.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