def METHOD_NAME(path, section):
    """Returns True of False indicating whether the path is covered by
       the current section."""
    if not 'file' in section:
        return False
    for pattern in section['file']:
        regex = pattern_to_regex(pattern)
        match = re.match(regex, path)
        if match:
            # Check if there is an exclude pattern that applies
            for pattern in section['exclude']:
                regex = pattern_to_regex(pattern)
                match = re.match(regex, path)
                if match:
                    return False
            return True
    return False