Missing --max-depth directory traversal limit flag #103

Closed
opened 2026-07-21 16:20:08 +02:00 by TapTap · 1 comment
Owner

Description

BFS traversal has no depth limit. Users cannot restrict how deep the scanner goes. For repos with deeply nested directories, this may cause excessive scanning.

Location

src/client/scanner.c (BFS traversal)

Suggested Fix

Add --max-depth <n> flag. Track depth in the BFS queue by encoding depth in the directory entry or using a separate structure. Skip entries beyond max depth.

Severity

low

Category

feature

Sub-Agent

feature-scout (FS-9)


This issue was automatically generated by the issue-creator agent.

## Description BFS traversal has no depth limit. Users cannot restrict how deep the scanner goes. For repos with deeply nested directories, this may cause excessive scanning. ## Location src/client/scanner.c (BFS traversal) ## Suggested Fix Add `--max-depth <n>` flag. Track depth in the BFS queue by encoding depth in the directory entry or using a separate structure. Skip entries beyond max depth. ## Severity low ## Category feature ## Sub-Agent feature-scout (FS-9) --- _This issue was automatically generated by the issue-creator agent._
Author
Owner

Fixed in PR #148 — merged into main on 2026-07-29.

Fixed in PR #148 — merged into main on 2026-07-29.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TapTap/FastSync#103