summary refs log tree commit diff
path: root/src/util/FileStorage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/FileStorage.ts')
-rw-r--r--src/util/FileStorage.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/FileStorage.ts b/src/util/FileStorage.ts

index 9c9911f3..48b4a6a5 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();