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