mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-12 03:44:51 +00:00
Generated
BIN
Binary file not shown.
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user