diff --git a/src/calibre/devices/usbms/driver.py b/src/calibre/devices/usbms/driver.py index fc39655396..a48fe04e7a 100644 --- a/src/calibre/devices/usbms/driver.py +++ b/src/calibre/devices/usbms/driver.py @@ -151,6 +151,8 @@ class USBMS(CLI, Device): for ext in self.DELETE_EXTS: if os.path.exists(filepath + ext): os.unlink(filepath + ext) + if os.path.exists(path + ext): + os.unlink(path + ext) if self.SUPPORTS_SUB_DIRS: try: