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

Function getCanonicalPath

packages/cli-exec/src/fsutils.ts:17–23  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

15 * Resolves a path through symlinks, falling back to the original path on miss.
16 */
17export async function getCanonicalPath(filePath: string): Promise<string> {
18 try {
19 return await realpath(filePath);
20 } catch {
21 return filePath;
22 }
23}
24
25/**
26 * Returns the inclusive directory chain from `parent` to `child`.

Callers 1

getLocalBinSearchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected