From b438a21b9c252ace62f9ce803bae939cbc1677e3 Mon Sep 17 00:00:00 2001 From: AlTech98 Date: Mon, 13 Sep 2021 17:32:31 +0200 Subject: Delete attachments of deleted messages, fix #273 --- cdn/src/util/FileStorage.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'cdn/src') diff --git a/cdn/src/util/FileStorage.ts b/cdn/src/util/FileStorage.ts index fae6eb1a..e0b24a84 100644 --- a/cdn/src/util/FileStorage.ts +++ b/cdn/src/util/FileStorage.ts @@ -37,6 +37,7 @@ export class FileStorage implements Storage { } async delete(path: string) { + //TODO we should delete the parent directory if empty fs.unlinkSync(getPath(path)); } } -- cgit 1.5.1