mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-07 20:45:46 +08:00
🐛 修复文件大小判断错误的问题
This commit is contained in:
parent
50707a8373
commit
ebed51e490
@ -248,12 +248,12 @@ async def download_all_file(
|
|||||||
size = size.replace('\r\n', '')
|
size = size.replace('\r\n', '')
|
||||||
file_path = path / name
|
file_path = path / name
|
||||||
if file_path.exists():
|
if file_path.exists():
|
||||||
is_diff = size == str(Path.stat(path).st_size)
|
is_diff = size == str(Path.stat(file_path).st_size)
|
||||||
else:
|
else:
|
||||||
is_diff = True
|
is_diff = True
|
||||||
if (
|
if (
|
||||||
not file_path.exists()
|
not file_path.exists()
|
||||||
or not Path.stat(path).st_size
|
or not Path.stat(file_path).st_size
|
||||||
or not is_diff
|
or not is_diff
|
||||||
):
|
):
|
||||||
logger.info(
|
logger.info(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user