* `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)
| 772 | * (an open file can't be unlinked). |
| 773 | */ |
| 774 | function 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 |
no outgoing calls
no test coverage detected