mirror of
https://github.com/ciromattia/kcc
synced 2026-09-01 08:27:06 +00:00
Replace copyfile + remove with move (#1373)
* remove mobiPath toclean * remove copyfile _comic.zip
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user