(targetLogDir: string, name: string, mtimeMs: number)
| 77 | } |
| 78 | |
| 79 | function writeLogIn(targetLogDir: string, name: string, mtimeMs: number): string { |
| 80 | const filePath = path.join(targetLogDir, name); |
| 81 | writeFileSync(filePath, name); |
| 82 | const date = new Date(mtimeMs); |
| 83 | utimesSync(filePath, date, date); |
| 84 | return filePath; |
| 85 | } |
| 86 | |
| 87 | function writeLog(name: string, mtimeMs: number): string { |
| 88 | return writeLogIn(logDir, name, mtimeMs); |
no outgoing calls
no test coverage detected