Merge pull request #4 from jhcpeixoto/master

FIX MKDIR
This commit is contained in:
Flam3rboy
2021-06-25 21:32:11 +02:00
committed by GitHub
2 changed files with 1 additions and 1 deletions
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -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();