Fix the bug that mistakenly created a directory instead of a file
This commit is contained in:
@@ -70,8 +70,6 @@ def storage_dir(sub_dir: str = ""):
|
||||
d = os.path.join(root_dir(), "storage")
|
||||
if sub_dir:
|
||||
d = os.path.join(d, sub_dir)
|
||||
if not os.path.exists(d):
|
||||
os.makedirs(d)
|
||||
return d
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user