MCPcopy Create free account
hub / github.com/vercel/vercel / isMissingPathError

Function isMissingPathError

packages/cli-exec/src/errutils.ts:15–22  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

13 * Returns whether a filesystem error means the requested path is absent.
14 */
15export function isMissingPathError(error: unknown): boolean {
16 return (
17 typeof error === 'object' &&
18 error !== null &&
19 'code' in error &&
20 (error.code === 'ENOENT' || error.code === 'ENOTDIR')
21 );
22}

Callers 2

statIfExistsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected