From 0e4f2374962d4e4394c3b8da4d7396c8be622b1f Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Thu, 24 Mar 2022 17:20:29 +0800 Subject: [PATCH] fixed #252 --- common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/utils.py b/common/utils.py index 14de144..38a1440 100644 --- a/common/utils.py +++ b/common/utils.py @@ -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():