(filePath: string)
| 326 | * entering a sync setAppState callback. |
| 327 | */ |
| 328 | export async function getFileMtime(filePath: string): Promise<number> { |
| 329 | const normalizedPath = normalizeFilePath(filePath) |
| 330 | const absPath = expandFilePath(normalizedPath) |
| 331 | try { |
| 332 | const stats = await stat(absPath) |
| 333 | return stats.mtimeMs |
| 334 | } catch { |
| 335 | return Date.now() |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * Track a file modification by NCode. |
nothing calls this directly
no test coverage detected