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

Function realpathOrNull

src/sync/watcher.ts:154–160  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

152}
153
154function realpathOrNull(p: string): string | null {
155 try {
156 return fs.realpathSync(p);
157 } catch {
158 return null;
159 }
160}
161
162/**
163 * Indirection over `fs.watch` so tests can inject a fake that throws or emits

Callers 1

armGoneCheckMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected