Skip to content

filesync: Duplicates handles paths over 260 characters - #54

Merged
therepos merged 2 commits into
mainfrom
claude/gifted-franklin-bfcn7p
Nov 30, 2026
Merged

therepos merged 2 commits into
mainfrom
claude/gifted-franklin-bfcn7p

Conversation

@therepos

Copy link
Copy Markdown
Owner

Duplicates could not delete files whose paths exceed 260 characters (the Windows shell route behind the Recycle Bin refuses them).

  • A file that long is first moved on the same drive to a short name under <folder>\~filesync-bin, then sent to the Recycle Bin from there; the holding folder is removed when empty and the DONE line says where restored files land.
  • Empty folders that long are removed directly; permanent deletes (network drives) and moves go through the existing LongPath helper.
  • Folder clean-up uses Get-ChildItem/Test-Path, which handle long paths in Windows PowerShell 5.1.

Not run on Windows. To test: make a duplicate under a path over 260 characters, run 8 - Duplicates, confirm the copy lands in the Recycle Bin and ~filesync-bin is gone afterwards.


Generated by Claude Code

@therepos
therepos merged commit eeb5481 into main Nov 30, 2026
1 check passed
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.

2 participants