Skip to main content

Function: resolveScopedPath()

resolveScopedPath(input, workingDir): PathValidationResult

Defined in: path-utils.ts:33

Resolve a user-supplied path against a working directory and reject anything that escapes it lexically. Allows names like ..cache.

Note: this does not follow symlinks. Prefer resolveInRoot / boundary* helpers for actual I/O.

Parameters

input

string

workingDir

string

Returns

PathValidationResult