chore: add posix to fix file not found errors

This commit is contained in:
Akhileshrangani4 2024-10-27 17:25:21 -04:00
parent b64913a8f3
commit e658a84a9b

View File

@ -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)