From 8aadfffd99e126c96ed216991017885700dd11a6 Mon Sep 17 00:00:00 2001 From: pociej Date: Tue, 14 May 2024 14:15:29 +0200 Subject: [PATCH] fix: allow spaces in file names no issue --- backend/src/services/file/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/file/service.ts b/backend/src/services/file/service.ts index 4a074e8..b2ead3d 100644 --- a/backend/src/services/file/service.ts +++ b/backend/src/services/file/service.ts @@ -48,7 +48,7 @@ export const fileService = ( const results = await worker.context ?.beginBatch() .uploadFile(`${DIR_NAME}${fileName}`, `/golem/workdir/${fileName}`) - .run(`/golem/scripts/clamscan-json.sh /golem/workdir/${fileName}`) + .run(`/golem/scripts/clamscan-json.sh "/golem/workdir/${fileName}"`) .run(`cat /golem/output/temp/metadata.json`) .end(); debugLog("file", "results", results);