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

Function statInode

src/directory.ts:300–308  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

298 * unlinked).
299 */
300export function statInode(p: string): string | null {
301 if (process.platform === 'win32') return null;
302 try {
303 const s = fs.statSync(p, { bigint: true });
304 return `${s.dev}:${s.ino}`;
305 } catch {
306 return null;
307 }
308}
309
310/**
311 * Canonicalize a project root for IDENTITY: hashing it into a rendezvous key

Callers 4

constructorMethod · 0.90
isReplacedOnDiskMethod · 0.90
isSameIndexRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected