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

Function statInode

src/db/index.ts:774–782  ·  view source on GitHub ↗

* `dev:ino` for a path, or null if it can't be stat'd or the platform doesn't * report a usable inode. Windows st_ino is unreliable across handle reopens, so * we deliberately return null there — the deleted-but-open-inode hazard this * guards (#925) is a POSIX file-semantics issue that doesn't a

(p: string)

Source from the content-addressed store, hash-verified

772 * (an open file can't be unlinked).
773 */
774function statInode(p: string): string | null {
775 if (process.platform === 'win32') return null;
776 try {
777 const s = fs.statSync(p);
778 return `${s.dev}:${s.ino}`;
779 } catch {
780 return null;
781 }
782}
783
784/**
785 * Default database filename

Callers 2

constructorMethod · 0.85
isReplacedOnDiskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected