import glob


def case_insensitive_glob(pattern, **kwargs):
    """ Glob without case sensitivity

    Args:
        pattern (:obj:`str`): glob pattern
        **kwargs

    Returns:
        :obj:`list` of :obj:`str`: path of files that match the glob pattern
    """
    def either(c):
        if c.isalpha():
            return '[{}{}]'.format(c.lower(), c.upper())
        else:
            return c
    return glob.glob(''.join(map(either, pattern)), **kwargs)