fix pos path

This commit is contained in:
Mylloon 2022-10-27 23:30:55 +02:00
parent b829674ea0
commit c759507f18
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -32,6 +32,9 @@ def init() -> None:
# Create upload folder if doesn't exists
if not exist(Config.uploads_dir):
mkdir(Config.uploads_dir)
mkdir(path=Config.uploads_dir)
# TODO: Clear every t mins the uploads directory and database
# TODO: On init, check if files in db are corresponding to the files stored
# in the uploads_dir (for example if some files are on the disk and not
# in the database)