Skip to content

validateRoot

validateRoot(pathRaw, ceiling): string | null

Defined in: src/dirs.ts:119

Validate a candidate repo root, confined to ceiling. Returns the resolved absolute path only when it is the ceiling or inside it (realpath containment); otherwise null.

unknown

string

string | null