This commit is contained in:
Jing Ling
2022-03-24 17:20:29 +08:00
committed by GitHub
parent 48591142a6
commit 0e4f237496
+1 -1
View File
@@ -192,7 +192,7 @@ def check_path(path, name, fmt):
else: else:
path = default_path path = default_path
path = Path(path) path = Path(path)
if not path.suffix: # 输入是目录的情况 if path.is_dir(): # 输入是目录的情况
path = path.joinpath(filename) path = path.joinpath(filename)
parent_dir = path.parent parent_dir = path.parent
if not parent_dir.exists(): if not parent_dir.exists():