mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
delete .dat files created by pdfs when removing books
This commit is contained in:
parent
c6ffebff90
commit
1d19b2611e
@ -123,9 +123,11 @@ class CYBOOKG3(USBMS):
|
|||||||
|
|
||||||
filepath, ext = os.path.splitext(path)
|
filepath, ext = os.path.splitext(path)
|
||||||
|
|
||||||
# Delete the ebook auxiliary file
|
# Delete the ebook auxiliary files
|
||||||
if os.path.exists(filepath + '.mbp'):
|
if os.path.exists(filepath + '.mbp'):
|
||||||
os.unlink(filepath + '.mbp')
|
os.unlink(filepath + '.mbp')
|
||||||
|
if os.path.exists(filepath + '.dat'):
|
||||||
|
os.unlink(filepath + '.dat')
|
||||||
|
|
||||||
# Delete the thumbnails file auto generated for the ebook
|
# Delete the thumbnails file auto generated for the ebook
|
||||||
if os.path.exists(filepath + '_6090.t2b'):
|
if os.path.exists(filepath + '_6090.t2b'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user