Skip to content

Bug: Symlinks in scanned directory cause infinite loop / double-counting #103

Description

@hariomlohardev

Description

Dogfooding — worth actually testing before filing. scan() follows symlinks via Path.resolve() in path_to_file but rglob may follow symlink loops.

Files

  • peek/peek/scanner.py — add is_symlink check + visited inodes
  • peek/tests/test_scanner.py — add test_symlink_loop

Acceptance

  • tmp/repo/a.py -> b.py symlink loop doesn’t hang or double-count
  • pytest -q passes

Time

~45 min

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions