Skip to content

Enforce directory root boundaries during traversal#44

Open
0xmrma wants to merge 2 commits into
emcf:mainfrom
0xmrma:fix/directory-root-boundary
Open

Enforce directory root boundaries during traversal#44
0xmrma wants to merge 2 commits into
emcf:mainfrom
0xmrma:fix/directory-root-boundary

Conversation

@0xmrma
Copy link
Copy Markdown
Contributor

@0xmrma 0xmrma commented May 25, 2026

This PR keeps scrape_directory within its intended root by enforcing canonical-path containment and tracking visited directories during recursion. It also adds a regression test that proves a symlink/junction to an outside directory is not traversed.

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.

1 participant