MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getFileMtime

Function getFileMtime

source code/utils/commitAttribution.ts:389–398  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

normalizeFilePathFunction · 0.85
expandFilePathFunction · 0.85
statFunction · 0.85

Tested by

no test coverage detected