chore: add posix to fix file not found errors
This commit is contained in:
parent
b64913a8f3
commit
e658a84a9b
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user