(resultBundlePath: string | undefined)
| 36 | } |
| 37 | |
| 38 | export function markResultBundlePathCompleted(resultBundlePath: string | undefined): void { |
| 39 | if (!resultBundlePath) { |
| 40 | return; |
| 41 | } |
| 42 | |
| 43 | try { |
| 44 | if (!fs.existsSync(resultBundlePath) || !fs.statSync(resultBundlePath).isDirectory()) { |
| 45 | return; |
| 46 | } |
| 47 | fs.writeFileSync(getResultBundleCompletionMarkerPath(resultBundlePath), `${Date.now()}\n`); |
| 48 | } catch (error) { |
| 49 | const message = error instanceof Error ? error.message : String(error); |
| 50 | log('warn', `Unable to mark result bundle completed at ${resultBundlePath}: ${message}`); |
| 51 | } |
| 52 | } |
no test coverage detected