Clean up eject_device

This commit is contained in:
Charles Haley 2010-05-16 21:13:34 +01:00
parent aa36a2aada
commit 462ae5b9e2
2 changed files with 5 additions and 0 deletions

View File

@ -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()

View File

@ -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: