Repository navigation
Conversation
When a real folder or file already sits where the link goes and the target path is free (missing or an empty folder), offer to move it to the target and leave a link in its place, so anything using the old path keeps working (#33). - Same drive: rename into place, instant and atomic - Different drive: set the original aside first (fails fast if files are in use), copy with a cancelable progress dialog, create the link, then remove the old copy - Any failure or cancel before the link exists puts everything back - Nested links are recreated as links, never followed; hidden, read-only and timestamps are kept - The window can't be closed while a move is running - mklink output is now collected and shown as one dialog Closes #33 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Summary
Adds the SymMover-style workflow requested in #33. If a real folder or file already exists where the link should go, Symlinker can now move it to the target and leave a link in its place, so anything using the old path keeps working. This is mainly for moving large folders (games, AI models) to another drive.
Closes #33
How it works
Fill in the link location, a link name that matches the existing folder or file, and a new target path, then click Create link. When the target doesn't exist yet (or is an empty folder), a "Move to target?" prompt offers Move and link or Cancel.
<name>.symlinker-move. This fails right away if something has its files open, before any time is spent copying.Changes
Symlinker/LinkMover.cs(new): copy, move and delete helpers.Directory.Deletewould otherwise try to unmount junctions with an API that needs admin rights, which fails when the app runs without admin.Symlinker/MainWindow.xaml.cs:CreateLink(), plus the move/rollback flow and the progress dialog.SendCommand()is split soRunMklinkAsync()returns success and message. mklink output is now shown as one dialog instead of one dialog per output line.Properties/Resources*.resx+Resources.Designer.cs: 14 new strings, translated into all 9 languages.Testing
Tested by hand in the running app (Debug build, not elevated, Developer Mode on):
Release build: 0 warnings.
Notes for reviewers
Resources.Designer.cs. Whichever merges second will need a small, easy merge fix.🤖 Generated with Claude Code