summary refs log tree commit diff
path: root/cdn/src/util/FileStorage.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-14 13:18:32 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-14 13:18:32 +0200
commit37533e28fdf6380efa06b13e0a09a3b2350115e2 (patch)
treec458ca4571ff9ff0bb56538bd9479868e72a4456 /cdn/src/util/FileStorage.ts
parent:bug: fix fosscord.js (diff)
parentMerge pull request #360 from AlTech98/invite (diff)
downloadserver-37533e28fdf6380efa06b13e0a09a3b2350115e2.tar.xz
Merge branch 'master' of https://github.com/fosscord/fosscord-api
Diffstat (limited to 'cdn/src/util/FileStorage.ts')
-rw-r--r--cdn/src/util/FileStorage.ts1
1 files changed, 1 insertions, 0 deletions
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)); } }