mirror of
https://github.com/lifegpc/pythonscript.git
synced 2026-06-06 11:28:58 +08:00
修复小问题
This commit is contained in:
4
check.py
4
check.py
@@ -28,7 +28,7 @@ def help():
|
|||||||
check.py -c filename 校验指定JSON文件里的文件
|
check.py -c filename 校验指定JSON文件里的文件
|
||||||
check.py -g filename [ext1 ext2 ...] 生成JSON校验文件
|
check.py -g filename [ext1 ext2 ...] 生成JSON校验文件
|
||||||
ext1等是要生成校验的文件的扩展名
|
ext1等是要生成校验的文件的扩展名
|
||||||
如不知道默认列表为"mp4 webm m4a"。
|
如不指定,默认列表为"mp4 webm m4a"。
|
||||||
注:程序需要UNIX工具sha256sum才能工作''')
|
注:程序需要UNIX工具sha256sum才能工作''')
|
||||||
|
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ def main(opt: dict):
|
|||||||
if exists(fn):
|
if exists(fn):
|
||||||
if getsize(fn) != i['size']:
|
if getsize(fn) != i['size']:
|
||||||
print(f'\r文件大小不一致:"{fn}"')
|
print(f'\r文件大小不一致:"{fn}"')
|
||||||
if getsha256(fn) != i['sha256']:
|
elif getsha256(fn) != i['sha256']:
|
||||||
print(f'\r文件sha256散列值不一致:"{fn}"')
|
print(f'\r文件sha256散列值不一致:"{fn}"')
|
||||||
else:
|
else:
|
||||||
print(f'\r找不到文件:"{fn}"')
|
print(f'\r找不到文件:"{fn}"')
|
||||||
|
|||||||
Reference in New Issue
Block a user