chore: add posix to fix file not found errors

This commit is contained in:
Akhileshrangani4 2024-10-27 14:17:08 -04:00
parent b64913a8f3
commit b48b08a274

View File

@ -128,7 +128,7 @@ export class FileManager {
// Copy all files from the project to the container // Copy all files from the project to the container
const promises = this.fileData.map(async (file) => { const promises = this.fileData.map(async (file) => {
try { try {
const filePath = path.join(this.dirName, file.id) const filePath = path.posix.join(this.dirName, file.id)
const parentDirectory = path.dirname(filePath) const parentDirectory = path.dirname(filePath)
if (!this.sandbox.files.exists(parentDirectory)) { if (!this.sandbox.files.exists(parentDirectory)) {
await this.sandbox.files.makeDir(parentDirectory) await this.sandbox.files.makeDir(parentDirectory)