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

Function statInode

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

Source from the content-addressed store, hash-verified

299 * unlinked).
300 */
301export function statInode(p: string): string | null {
302 if (process.platform === 'win32') return null;
303 try {
304 const s = fs.statSync(p, { bigint: true });
305 return `${s.dev}:${s.ino}`;
306 } catch {
307 return null;
308 }
309}
310
311/**
312 * 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