MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getFileMtime

Function getFileMtime

src/utils/commitAttribution.ts:388–397  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

386 * entering a sync setAppState callback.
387 */
388export 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.

Callers

nothing calls this directly

Calls 4

normalizeFilePathFunction · 0.85
expandFilePathFunction · 0.85
statFunction · 0.85
nowMethod · 0.80

Tested by

no test coverage detected