MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / nativeRealPath

Function nativeRealPath

src/utils.ts:277–283  ·  view source on GitHub ↗

* The folder a path really names: links (symlinks, junctions, a `subst` drive) * followed, and the case and long names stored on disk. Null when it can't be * resolved, most often because it doesn't exist; the lexical check still runs.

(p: string)

Source from the content-addressed store, hash-verified

275 * resolved, most often because it doesn't exist; the lexical check still runs.
276 */
277function nativeRealPath(p: string): string | null {
278 try {
279 return fs.realpathSync.native(p);
280 } catch {
281 return null;
282 }
283}
284
285/**
286 * The system set's own real paths, folded. macOS keeps `/etc`, `/tmp` and

Callers 3

sensitiveSystemPathsFunction · 0.85
sensitiveHomeTreesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected