fix
This commit is contained in:
parent
abfff91fb9
commit
0509be1312
@ -98,12 +98,13 @@ class CBZUtils:
|
||||
for file in fz.namelist():
|
||||
fz.extract(file, unpack_dir)
|
||||
zip_imgs = os.listdir(unpack_dir)
|
||||
is_file = None
|
||||
is_file = []
|
||||
for img in zip_imgs:
|
||||
if img.endswith(".jpg"):
|
||||
file_path = os.path.join(unpack_dir,img)
|
||||
is_file = fileUtils.ver_file(file_path,"image")
|
||||
if is_file != None and is_file == False:
|
||||
is_file.append(fileUtils.ver_file(file_path,"image"))
|
||||
is_file = ",".join(is_file)
|
||||
if len(is_file) != 0 and "False" in is_file:
|
||||
shutil.rmtree(unpack_dir)
|
||||
os.remove(file_path)
|
||||
print(f"已删除{file_path}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user