From e658a84a9b6391a7b9ea1d7197f78545d5678601 Mon Sep 17 00:00:00 2001 From: Akhileshrangani4 Date: Sun, 27 Oct 2024 17:25:21 -0400 Subject: [PATCH] chore: add posix to fix file not found errors --- backend/server/src/FileManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/server/src/FileManager.ts b/backend/server/src/FileManager.ts index 2f58fbf..88d53f3 100644 --- a/backend/server/src/FileManager.ts +++ b/backend/server/src/FileManager.ts @@ -128,7 +128,7 @@ export class FileManager { // Copy all files from the project to the container const promises = this.fileData.map(async (file) => { try { - const filePath = path.join(this.dirName, file.id) + const filePath = path.posix.join(this.dirName, file.id) const parentDirectory = path.dirname(filePath) if (!this.sandbox.files.exists(parentDirectory)) { await this.sandbox.files.makeDir(parentDirectory)