isPathSafe
isPathSafe(
root,candidate):boolean
Defined in: packages/core/src/utils/path-security.ts:14
Whether joining root with candidate stays inside root (no traversal).
Parameters
Section titled “Parameters”string
candidate
Section titled “candidate”string
Returns
Section titled “Returns”boolean