Replace copyfile + remove with move (#1373)

* remove mobiPath toclean

* remove copyfile _comic.zip
This commit is contained in:
Alex Xu
2026-06-24 18:58:27 -07:00
committed by GitHub
parent 0f009755b1
commit f1b58c83d6
3 changed files with 4 additions and 16 deletions
-3
View File
@@ -517,7 +517,6 @@ class WorkerThread(QThread):
for item in outputPath:
GUI.progress.content = ''
mobiPath = item.replace('.epub', '.mobi')
os.remove(mobiPath + '_toclean')
if GUI.targetDirectory and GUI.targetDirectory != os.path.dirname(mobiPath):
try:
move(mobiPath, GUI.targetDirectory)
@@ -538,8 +537,6 @@ class WorkerThread(QThread):
mobiPath = item.replace('.epub', '.mobi')
if os.path.exists(mobiPath):
os.remove(mobiPath)
if os.path.exists(mobiPath + '_toclean'):
os.remove(mobiPath + '_toclean')
MW.addMessage.emit('Failed to process MOBI file!', 'error', False)
MW.addTrayMessage.emit('Failed to process MOBI file!', 'Critical')
else: