From 1d19b2611e3acde0ea520738fb7b311139464dd8 Mon Sep 17 00:00:00 2001 From: John Schember Date: Fri, 10 Apr 2009 07:36:03 -0400 Subject: [PATCH] delete .dat files created by pdfs when removing books --- src/calibre/devices/cybookg3/driver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/cybookg3/driver.py b/src/calibre/devices/cybookg3/driver.py index 0998a60451..c6186b3c3a 100644 --- a/src/calibre/devices/cybookg3/driver.py +++ b/src/calibre/devices/cybookg3/driver.py @@ -123,9 +123,11 @@ class CYBOOKG3(USBMS): filepath, ext = os.path.splitext(path) - # Delete the ebook auxiliary file + # Delete the ebook auxiliary files if os.path.exists(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 if os.path.exists(filepath + '_6090.t2b'):