mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1008215 (Sync problems with old sony driver sync)
This commit is contained in:
parent
8dd97292cf
commit
2aff0ad7a7
@ -382,7 +382,8 @@ class USBMS(CLI, Device):
|
|||||||
os.makedirs(self.normalize_path(self._main_prefix))
|
os.makedirs(self.normalize_path(self._main_prefix))
|
||||||
|
|
||||||
def write_prefix(prefix, listid):
|
def write_prefix(prefix, listid):
|
||||||
if prefix is not None and isinstance(booklists[listid], self.booklist_class):
|
if (prefix is not None and len(booklists) > listid and
|
||||||
|
isinstance(booklists[listid], self.booklist_class)):
|
||||||
if not os.path.exists(prefix):
|
if not os.path.exists(prefix):
|
||||||
os.makedirs(self.normalize_path(prefix))
|
os.makedirs(self.normalize_path(prefix))
|
||||||
with open(self.normalize_path(os.path.join(prefix, self.METADATA_CACHE)), 'wb') as f:
|
with open(self.normalize_path(os.path.join(prefix, self.METADATA_CACHE)), 'wb') as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user