summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-25 21:32:11 +0200
committerGitHub <noreply@github.com>2021-06-25 21:32:11 +0200
commit5bfdad897b2fb6e16f8a046b64af7349dba7d1f7 (patch)
treeb85e0737f30b197237e506d2a683483620c660f3 /src
parent:bug: fix .env file not loading (diff)
parent4 TABS (diff)
downloadserver-5bfdad897b2fb6e16f8a046b64af7349dba7d1f7.tar.xz
Merge pull request #4 from jhcpeixoto/master
FIX MKDIR
Diffstat (limited to 'src')
-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();