From b48b08a274704ba9ddd8fd01b132aca436dfa25b Mon Sep 17 00:00:00 2001 From: Akhileshrangani4 Date: Sun, 27 Oct 2024 14:17:08 -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)