* Deletes all files associated with a task * * @param taskId - The task identifier * @returns Object indicating which files were deleted
(taskId: string)
| 276 | * @returns Object indicating which files were deleted |
| 277 | */ |
| 278 | async deleteTaskFiles(taskId: string): Promise<{ uploadDeleted: boolean; resultDeleted: boolean }> { |
| 279 | const uploadDeleted = await this.deleteFileIfExists(this.getUploadedFilePath(taskId)); |
| 280 | const resultDeleted = await this.deleteFileIfExists(this.getResultFilePath(taskId)); |
| 281 | await this.deleteFileIfExists(this.getResultMetadataPath(taskId)); |
| 282 | return { uploadDeleted, resultDeleted }; |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * Cleans up files older than the specified age |
no test coverage detected