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

Function convertFileNameToDate

source code/utils/cleanup.ts:50–55  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

48}
49
50export function convertFileNameToDate(filename: string): Date {
51 const isoStr = filename
52 .split('.')[0]!
53 .replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/, 'T$1:$2:$3.$4Z')
54 return new Date(isoStr)
55}
56
57async function cleanupOldFilesInDirectory(
58 dirPath: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected