commit
5bfdad897b
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -16,7 +16,7 @@ export class FileStorage implements Storage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async set(path: string, value: any) {
|
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("/");
|
const dir = path.split("/").slice(0, -1).join("/");
|
||||||
await fs.mkdir(dir, { recursive: true }).caught();
|
await fs.mkdir(dir, { recursive: true }).caught();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user