(a: FileIdentity | null, b: FileIdentity | null)
| 76 | } |
| 77 | |
| 78 | function sameFile(a: FileIdentity | null, b: FileIdentity | null): boolean { |
| 79 | if (a === null || b === null) return false; |
| 80 | // `ino` is 0 on a few Windows filesystems; birthtime alone still catches a |
| 81 | // recreate there, and a false "changed" only costs one reopen. |
| 82 | return a.ino === b.ino && a.birthtimeMs === b.birthtimeMs; |
| 83 | } |
| 84 | |
| 85 | /** Same file, but written to since we last looked. */ |
| 86 | function sameContent(a: FileIdentity | null, b: FileIdentity | null): boolean { |