Fixed upload path type cast.
This commit is contained in:
parent
17f727f620
commit
9efc068de2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user