Delete the output file (fire-and-forget safe).
()
| 371 | |
| 372 | /** Delete the output file (fire-and-forget safe). */ |
| 373 | async deleteOutputFile(): Promise<void> { |
| 374 | try { |
| 375 | await unlink(this.path) |
| 376 | } catch { |
| 377 | // File may already be deleted or not exist |
| 378 | } |
| 379 | } |
| 380 | |
| 381 | clear(): void { |
| 382 | this.#stdoutBuffer = '' |