# traversal

Directory-walking and file-search helpers built around an explicit visitor pattern.

[`walkDirectory`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/traversal/#api-walkDirectory) and [`walkTree`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/traversal/#api-walkTree) traverse a folder hierarchy, invoking a [`WalkVisitor`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/traversal/#api-WalkVisitor) for every entry; the visitor's [`WalkVisitorResult`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/traversal/#api-WalkVisitorResult) controls whether to descend, skip, or stop. [`findFiles`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/traversal/#api-findFiles), [`findFilesInTree`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/traversal/#api-findFilesInTree), and [`findDirectories`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/traversal/#api-findDirectories) are the higher-level shortcuts for "give me everything matching this pattern" use cases, with [`FindOptions`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/traversal/#api-FindOptions) covering depth limits, include/exclude globs, and symlink behavior. Designed for static analysis tools that need predictable, side-effect-free directory iteration with backpressure-style control.

---

Canonical page: https://www.hyperfrontend.dev/docs/libraries/project-scope/project/traversal/
This file: https://www.hyperfrontend.dev/docs/libraries/project-scope/project/traversal.md
Documentation index: https://www.hyperfrontend.dev/llms.txt
