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

Function nativeRealPath

src/utils.ts:278–284  ·  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

276 * resolved, most often because it doesn't exist; the lexical check still runs.
277 */
278function nativeRealPath(p: string): string | null {
279 try {
280 return fs.realpathSync.native(p);
281 } catch {
282 return null;
283 }
284}
285
286/**
287 * 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