mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
commit
5bfdad897b
1793
package-lock.json
generated
1793
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user