mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-25 00:56:14 +08:00
fixed #252
This commit is contained in:
+1
-1
@@ -192,7 +192,7 @@ def check_path(path, name, fmt):
|
||||
else:
|
||||
path = default_path
|
||||
path = Path(path)
|
||||
if not path.suffix: # 输入是目录的情况
|
||||
if path.is_dir(): # 输入是目录的情况
|
||||
path = path.joinpath(filename)
|
||||
parent_dir = path.parent
|
||||
if not parent_dir.exists():
|
||||
|
||||
Reference in New Issue
Block a user