This commit is contained in:
caiwx86 2023-01-09 22:06:38 +08:00
parent 26e3a8f19a
commit edc16f683c

View File

@ -122,8 +122,9 @@ class comicEntity:
is_next = CBZUtils.packAutoComicChapterCBZ()
#完成删除原文件
remove_path = comicInfo.getDirComicChapter()
shutil.rmtree(remove_path)
print(f"文件已删除: {remove_path}")
if os.path.exists(remove_path):
shutil.rmtree(remove_path)
print(f"文件已删除: {remove_path}")
#except Exception as e:
# print(e)
# ntfy.sendMsg(f"{comicInfo.getComicName()} 下载出错了")