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-08-30 12:15:07 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-30 12:15:07 +0200
commit1eecd409af29dd1ec730f0a09821250075c07160 (patch)
tree9972e8b7ef5db4b632a8a2c56a60b8cb6f8a8405 /cdn/src/util/FileStorage.ts
parent:construction: typeorm (diff)
parentadded unittests for filestorage [cdn] (diff)
downloadserver-1eecd409af29dd1ec730f0a09821250075c07160.tar.xz
Merge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm
Diffstat (limited to 'cdn/src/util/FileStorage.ts')
-rw-r--r--cdn/src/util/FileStorage.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/cdn/src/util/FileStorage.ts b/cdn/src/util/FileStorage.ts

index 6e74788f..fae6eb1a 100644 --- a/cdn/src/util/FileStorage.ts +++ b/cdn/src/util/FileStorage.ts
@@ -6,6 +6,8 @@ import "missing-native-js-functions"; import { Readable } from "stream"; import ExifTransformer = require("exif-be-gone"); +// TODO: split stored files into separate folders named after cloned route + function getPath(path: string) { // STORAGE_LOCATION has a default value in start.ts const root = process.env.STORAGE_LOCATION || "../";