This commit is contained in:
caiwx86 2023-01-16 02:22:01 +08:00
parent 0509be1312
commit 79e35f994e

View File

@ -102,7 +102,7 @@ class CBZUtils:
for img in zip_imgs: for img in zip_imgs:
if img.endswith(".jpg"): if img.endswith(".jpg"):
file_path = os.path.join(unpack_dir,img) file_path = os.path.join(unpack_dir,img)
is_file.append(fileUtils.ver_file(file_path,"image")) is_file.append(str(fileUtils.ver_file(file_path,"image")))
is_file = ",".join(is_file) is_file = ",".join(is_file)
if len(is_file) != 0 and "False" in is_file: if len(is_file) != 0 and "False" in is_file:
shutil.rmtree(unpack_dir) shutil.rmtree(unpack_dir)