This commit is contained in:
2026-08-28 17:31:02 +02:00
commit 2b30e8bd39
694 changed files with 49243 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import { Logger } from '@nestjs/common';
import { unlink } from 'node:fs/promises';
export const removeFileFromDisk = async (path: string, logContext = 'removeFileFromDisk'): Promise<void> => {
try {
await unlink(path);
} catch {
Logger.error(`Failed to remove file ${path}`, logContext);
}
};