This commit is contained in:
cwx
2023-01-15 20:00:55 +08:00
parent 16fa338f12
commit 1e5652744b
2 changed files with 14 additions and 7 deletions
+10 -2
View File
@@ -293,10 +293,18 @@ class comicInfo():
@classmethod
def getNewCBZComicChapter(cls):
return cls.getNewToComicChapter(".CBZ")
@classmethod
def getNewIconComicChapter(cls):
return cls.getNewToComicChapter(".jpg")
@classmethod
def getNewToComicChapter(cls,su):
c_dir = cls.getDirCBZComicChapter()
s_dir = cls.getSortDirCBZComicChapter()
c_path = cls.getDirCBZComicChapter()+".CBZ"
s_path = cls.getSortDirCBZComicChapter()+".CBZ"
c_path = cls.getDirCBZComicChapter()+su
s_path = cls.getSortDirCBZComicChapter()+su
if os.path.exists(c_path) and s_path != None:
shutil.move(c_path, s_path)
print("文件已移动至:", s_path)