mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Clean up eject_device
This commit is contained in:
parent
aa36a2aada
commit
462ae5b9e2
@ -88,6 +88,9 @@ class FOLDER_DEVICE(USBMS):
|
||||
def get_main_ebook_dir(self):
|
||||
return ''
|
||||
|
||||
def eject(self):
|
||||
self.is_connected = False
|
||||
|
||||
@classmethod
|
||||
def settings(self):
|
||||
return FOLDER_DEVICE_FOR_CONFIG._config().parse()
|
||||
|
@ -248,6 +248,8 @@ class USBMS(CLI, Device):
|
||||
|
||||
@classmethod
|
||||
def normalize_path(cls, path):
|
||||
if path is None:
|
||||
return None
|
||||
if os.sep == '\\':
|
||||
path = path.replace('/', '\\')
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user