MCPcopy Create free account
hub / github.com/arktypeio/arktype / isUnder

Function isUnder

ark/aot/nextProgram.ts:239–240  ·  view source on GitHub ↗
(path: string, dirs: string[])

Source from the content-addressed store, hash-verified

237 const routes = routeDirs.map(dir => join(root, dir))
238 const pages = pagesDirs.map(dir => join(root, dir))
239 const isUnder = (path: string, dirs: string[]) =>
240 dirs.some(dir => path === dir || path.startsWith(`${dir}${sep}`))
241 // a file reached through a link is read as Turbopack reads it, by where it is
242 const walk = (dir: string, isLinked: boolean) => {
243 const isRoot = dir === root

Callers 1

walkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected