From b3024986e644102d9eaafa83236fecd671288a7c Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 27 Dec 2019 13:47:25 +0100 Subject: [PATCH] making faces folder if not exists --- src/backend/model/fileprocessing/PhotoProcessing.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/model/fileprocessing/PhotoProcessing.ts b/src/backend/model/fileprocessing/PhotoProcessing.ts index 20116ac4..8eb868ce 100644 --- a/src/backend/model/fileprocessing/PhotoProcessing.ts +++ b/src/backend/model/fileprocessing/PhotoProcessing.ts @@ -92,6 +92,7 @@ export class PhotoProcessing { input.cut.width = Math.min(input.cut.width, photo.metadata.size.width - input.cut.left); input.cut.height = Math.min(input.cut.height, photo.metadata.size.height - input.cut.top); + await fsp.mkdir(ProjectPath.FacesFolder, {recursive: true}); await PhotoProcessing.taskQue.execute(input); return thPath; }