Fixed upload path type cast.

This commit is contained in:
mihasinkec 2021-03-24 13:43:43 +01:00
parent 17f727f620
commit 9efc068de2

View File

@ -76,7 +76,7 @@ class UploadHandler:
def get_uploads_subdir(self, dir_name): def get_uploads_subdir(self, dir_name):
subdir = self.config['UPLOADS_DIR'] / dir_name subdir = Path(self.config['UPLOADS_DIR']) / dir_name
if not subdir.exists(): if not subdir.exists():
subdir.mkdir(parents=True) subdir.mkdir(parents=True)
return subdir return subdir