From ebed51e490a8423d10115f4b26d3ac61d668982a Mon Sep 17 00:00:00 2001 From: qwerdvd <2450899274@qq.com> Date: Thu, 12 Oct 2023 12:41:57 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StarRailUID/utils/resource/download_from_cos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StarRailUID/utils/resource/download_from_cos.py b/StarRailUID/utils/resource/download_from_cos.py index 94fbec1..91c745e 100644 --- a/StarRailUID/utils/resource/download_from_cos.py +++ b/StarRailUID/utils/resource/download_from_cos.py @@ -248,12 +248,12 @@ async def download_all_file( size = size.replace('\r\n', '') file_path = path / name if file_path.exists(): - is_diff = size == str(Path.stat(path).st_size) + is_diff = size == str(Path.stat(file_path).st_size) else: is_diff = True if ( not file_path.exists() - or not Path.stat(path).st_size + or not Path.stat(file_path).st_size or not is_diff ): logger.info(