def check_mount(root, drive):
 if (not (urllib.parse.quote_plus(drive) == drive)):
  return False
 path = os.path.join(root, drive)
 return utils.ismount(path)

def check_mount ( root , drive ) : if ( not ( urllib . parse . quote_plus ( drive ) == drive ) ) : return False path = os . path . join ( root , drive ) return utils . ismount ( path )
verify that the path to the device is a mount point and mounted .