diff --git a/package-lock.json b/package-lock.json index e296e974f..5c56d9e3e 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/src/util/FileStorage.ts b/src/util/FileStorage.ts index 9c9911f3e..48b4a6a57 100644 --- a/src/util/FileStorage.ts +++ b/src/util/FileStorage.ts @@ -16,7 +16,7 @@ export class FileStorage implements Storage { } async set(path: string, value: any) { - path = join(process.env.STORAGE_LOCATION || "", path); + path = join(process.env.STORAGE_LOCATION || "", path).replace(/[\\]/g, "/"); const dir = path.split("/").slice(0, -1).join("/"); await fs.mkdir(dir, { recursive: true }).caught();