From 4ad24deb9cb0ce4636cb15868a886f462f75905a Mon Sep 17 00:00:00 2001 From: wqzz123 Date: Wed, 13 Apr 2022 16:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E6=9C=89=E5=AD=97=E5=B9=95=E5=92=8C?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=90=8D=E7=A7=B0=E7=9B=B8=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E6=89=8D=E6=8B=B7=E8=B4=9D=E5=AD=97=E5=B9=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core.py b/core.py index 9a51305..f19383a 100644 --- a/core.py +++ b/core.py @@ -526,6 +526,8 @@ def paste_file_to_folder(filepath, path, multi_part, number, part, leak_word, c_ if subfile.is_file() and subfile.suffix.lower() in sub_res: if multi_part and part.lower() not in subfile.name.lower(): continue + if filepath_obj.stem.split('.')[0].lower() != subfile.stem.split('.')[0].lower(): + continue sub_targetpath = Path(path) / f"{number}{leak_word}{c_word}{hack_word}{''.join(subfile.suffixes)}" if link_mode not in (1, 2): shutil.move(str(subfile), str(sub_targetpath))