(filePath: string)
| 386 | * entering a sync setAppState callback. |
| 387 | */ |
| 388 | export async function getFileMtime(filePath: string): Promise<number> { |
| 389 | const normalizedPath = normalizeFilePath(filePath) |
| 390 | const absPath = expandFilePath(normalizedPath) |
| 391 | try { |
| 392 | const stats = await stat(absPath) |
| 393 | return stats.mtimeMs |
| 394 | } catch { |
| 395 | return Date.now() |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | /** |
| 400 | * Track a file modification by Claude. |
nothing calls this directly
no test coverage detected