This commit is contained in:
cwx
2023-01-16 04:02:00 +08:00
parent 82a2e8cffe
commit cffce0f8b7
2 changed files with 9 additions and 2 deletions
+5 -2
View File
@@ -448,9 +448,12 @@ class comicInfo():
cls.nextSavePath("done_",data)
@classmethod
def nextExistsGetPath(cls,msg):
def nextExistsGetPath(cls,msg,remove=False):
path = cls.nextSavePath(msg)
return os.path.exists(path)
is_exists = os.path.exists(path)
if remove and is_exists:
os.remove(path)
return is_exists
@classmethod
def saveConfComicData(cls,fileName,data,comicName=None):