From b3281b3b1ee125eebdacd95c8734824afd6b7ec8 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 17 Aug 2023 16:55:00 +0800 Subject: [PATCH] =?UTF-8?q?fix=20move=E7=A7=BB=E5=8A=A8=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/utils/system.py b/app/utils/system.py index a0ff172d..5c548db5 100644 --- a/app/utils/system.py +++ b/app/utils/system.py @@ -59,7 +59,8 @@ class SystemUtils: 移动 """ try: - shutil.move(src.replace(dest.name), dest) + temp = src.replace(src.parent / dest.name) + shutil.move(temp, dest) return 0, "" except Exception as err: print(str(err))