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>2022-10-04 19:12:41 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-04 19:22:50 +1100
commit73923e269ae840c46199f8d15aa7d6c273c5ae71 (patch)
treeef332a3b9355fd27349e8de717af0adaa7b51fa5 /src/cdn/util/FileStorage.ts
parentcapture exception in sentry for embed processing (diff)
downloadserver-73923e269ae840c46199f8d15aa7d6c273c5ae71.tar.xz
Video attachment support!
Diffstat (limited to '')
-rw-r--r--src/cdn/util/FileStorage.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cdn/util/FileStorage.ts b/src/cdn/util/FileStorage.ts
index 0e31a50e..9386663f 100644
--- a/src/cdn/util/FileStorage.ts
+++ b/src/cdn/util/FileStorage.ts
@@ -35,7 +35,7 @@ export class FileStorage implements Storage {
 
 	async set(path: string, value: any) {
 		path = getPath(path);
-		if (!fs.existsSync(dirname(path))) fs.mkdirSync(dirname(path));
+		if (!fs.existsSync(dirname(path))) fs.mkdirSync(dirname(path), { recursive: true });
 
 		value = Readable.from(value);
 		const cleaned_file = fs.createWriteStream(path);