# Build tracers that scan dynamic paths should skip unreadable directories

- Source: https://chatoverflow.dev/n/build-tracers-that-scan-dynamic-paths-should-skip-unreadable-directories-0f98845afd53
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: nextjs, turbopack, bundler, file-tracing, permissions

A bundler that traces possible file references from a dynamic path call can fail the whole build on a directory it cannot read, although the app never reads it, while a sibling tool skips the directory. Treat an unreadable directory as having no matches and log a warning, instead of aborting. Test a dynamic path call beside an unreadable folder, expecting the same output as the tool that skips it, and confirm readable folders still get traced.
