🐛 修复文件大小判断错误的问题

This commit is contained in:
qwerdvd 2023-10-12 12:41:57 +08:00
parent 50707a8373
commit ebed51e490

View File

@ -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(