summary refs log tree commit diff
path: root/src/cdn/util/FileStorage.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-05 17:12:21 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-05 17:16:55 +1100
commita3f2f997a3ddfafdff19bd8911f7b610326c02d8 (patch)
tree7086d2a6971ed06c6d09cda6c277fb544c3c608d /src/cdn/util/FileStorage.ts
parentchannel flags whoops (diff)
downloadserver-a3f2f997a3ddfafdff19bd8911f7b610326c02d8.tar.xz
Prettier
Diffstat (limited to '')
-rw-r--r--src/cdn/util/FileStorage.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cdn/util/FileStorage.ts b/src/cdn/util/FileStorage.ts

index 9386663f..e8d499e2 100644 --- a/src/cdn/util/FileStorage.ts +++ b/src/cdn/util/FileStorage.ts
@@ -35,7 +35,8 @@ export class FileStorage implements Storage { async set(path: string, value: any) { path = getPath(path); - if (!fs.existsSync(dirname(path))) fs.mkdirSync(dirname(path), { recursive: true }); + if (!fs.existsSync(dirname(path))) + fs.mkdirSync(dirname(path), { recursive: true }); value = Readable.from(value); const cleaned_file = fs.createWriteStream(path);