def get_name(path):
    """
    Get directory name from path to config/profile/...
    :param path: str - path
    :return: str - directory name without blanks
    """
    directory = path.split('/')[-2]
    directory = directory.replace(' ', '_')
    return directory