'Create ismview directory.'

def _create_ismview_dir(self, ismview_dir, diskarray_name, driver_name, host):

    filename = diskarray_name
    if (filename == ''):
        filename = ((driver_name + '_') + host)
    ismview_path = os.path.join(ismview_dir, filename)
    LOG.debug('ismview_path=%s.', ismview_path)
    try:
        if os.path.exists(ismview_path):
            os.remove(ismview_path)
    except OSError as e:
        with excutils.save_and_reraise_exception() as ctxt:
            if (e.errno == errno.ENOENT):
                ctxt.reraise = False
    try:
        os.makedirs(ismview_dir)
    except OSError as e:
        with excutils.save_and_reraise_exception() as ctxt:
            if (e.errno == errno.EEXIST):
                ctxt.reraise = False
    return ismview_path
