From c759507f1807ae42b12b26292d76565e85e215a0 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 27 Oct 2022 23:30:55 +0200 Subject: [PATCH] fix pos path --- src/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config.py b/src/config.py index a68feb8..65bc033 100644 --- a/src/config.py +++ b/src/config.py @@ -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)