Skip to content

fix(filesystem): allow case-only renames in move mode - #513

Merged
Jeomon merged 1 commit into
CursorTouch:mainfrom
jaeminbird:fix-case-only-rename
Oct 29, 2026
Merged

Jeomon merged 1 commit into
CursorTouch:mainfrom
jaeminbird:fix-case-only-rename

Conversation

@jaeminbird

Copy link
Copy Markdown
Contributor

Renaming report.txt to Report.txt with FileSystem(mode='move') always fails with "Source and destination paths overlap." On NTFS both paths resolve to the same file, so the check added in #489 treats it as moving a file onto itself. When the two resolve to the same path and the destination name differs only in case within the same parent, move_path now renames in place; every other overlap case still fails as before.

  • New file and directory tests in tests/test_filesystem_overlap.py fail on main and pass with the fix.
  • uv run --extra dev pytest passes and ruff check is clean (Windows, Python 3.14).

@Jeomon
Jeomon merged commit ef95647 into CursorTouch:main Oct 29, 2026
@Jeomon

Jeomon commented Oct 29, 2026

Copy link
Copy Markdown
Member

Thanks

@jaeminbird
jaeminbird deleted the fix-case-only-rename branch October 30, 2026 06:40
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