Repository navigation
Footage: relinking a moved project keeps Windows separators and UNC shares - #1639
Merged
Merged
Conversation
…hares project_dir rebuilt the folder with `/` and dropped a UNC share's leading `\`, so a project opened from \server\share\Job looked for its moved footage under the relative path server/share/Job and never found it. It now keeps the path's own separator and its leading `/` or `\`. The relink tests built mixed-separator paths (`…\Job/p.ecproj`) and so failed on Windows; they now use native paths and check the separator is kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 16, 2026
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.
Why
Three relink tests from #1106 fail on Windows (
relinking_one_file_finds_the_others_that_moved_with_it,footage_moved_with_its_project_is_found_on_open,replacing_a_missing_file_relinks_the_others_that_moved_with_it). Looking into them turned up a real bug:project_dirrebuilt the project's folder with/and dropped a UNC share's leading\. A project opened from\server\share\Jobthen looked for its moved footage under the relative pathserver/share/Job, so nothing was found on open.What changed
project_dirkeeps the path's own separator and its leading/or UNC\, as the module doc already promised. It's used by the footage check on open and by Replace Footage's same-folder fallback.…\Job/p.ecproj). They now use native paths, so on Windows they check that backslashes are kept.Tests
On Windows 11:
effectcraft-enginelib 622 passed,effectcraft-host --test relinkpassed, fmt and clippy-D warningsclean. Follows #1221 / #1254, which fixed the other Windows path-format test failures.🤖 Generated with Claude Code