Skip to content

fix(filesystem): report symlinks and junctions in info mode - #514

Merged
Jeomon merged 1 commit into
CursorTouch:mainfrom
jaeminbird:fix-info-links
Oct 29, 2026
Merged

Jeomon merged 1 commit into
CursorTouch:mainfrom
jaeminbird:fix-info-links

Conversation

@jaeminbird

Copy link
Copy Markdown
Contributor

get_file_info resolves the path before checking for a link, so the Symlink type and Link target: output can never appear: a junction or symlink is reported as its target, and a link whose target is missing returns "Path not found". Links are now detected before resolving, as delete does since #490, read with lstat, typed Symlink or Junction, and given link_target.

  • New junction tests fail on main and pass on Windows (Python 3.14); the symlink tests fail on main and pass on Linux, and skip on Windows without symlink privilege.
  • uv run --extra dev pytest passes and ruff check is clean.

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