Skip to content

Footage: relinking a moved project keeps Windows separators and UNC shares - #1639

Merged
bflatastic merged 1 commit into
mainfrom
fix/relink-windows-paths
Oct 16, 2026
Merged

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

Conversation

@bflatastic

Copy link
Copy Markdown
Member

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_dir rebuilt the project's folder with / and dropped a UNC share's leading \. A project opened from \server\share\Job then looked for its moved footage under the relative path server/share/Job, so nothing was found on open.

What changed

  • project_dir keeps 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.
  • The three tests built mixed-separator paths (…\Job/p.ecproj). They now use native paths, so on Windows they check that backslashes are kept.
  • Unit asserts for a drive-letter path, a UNC share, and the moved candidates under a share.

Tests

On Windows 11: effectcraft-engine lib 622 passed, effectcraft-host --test relink passed, fmt and clippy -D warnings clean. Follows #1221 / #1254, which fixed the other Windows path-format test failures.

🤖 Generated with Claude Code

…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>
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