From dc8eea369dc713742e28c2c2980d0e2ae5a07e2e Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sat, 8 Aug 2020 20:22:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check.py b/check.py index d200362..b3fbb66 100644 --- a/check.py +++ b/check.py @@ -28,7 +28,7 @@ def help(): check.py -c filename 校验指定JSON文件里的文件 check.py -g filename [ext1 ext2 ...] 生成JSON校验文件 ext1等是要生成校验的文件的扩展名 - 如不知道默认列表为"mp4 webm m4a"。 + 如不指定,默认列表为"mp4 webm m4a"。 注:程序需要UNIX工具sha256sum才能工作''') @@ -92,7 +92,7 @@ def main(opt: dict): if exists(fn): if getsize(fn) != i['size']: print(f'\r文件大小不一致:"{fn}"') - if getsha256(fn) != i['sha256']: + elif getsha256(fn) != i['sha256']: print(f'\r文件sha256散列值不一致:"{fn}"') else: print(f'\r找不到文件:"{fn}"')