from pathlib import Path
from typing import List


def matches_glob(path: Path, globs: List[str]):
    """Checks if the path is matched by a list of globs"""
    if globs is None:
        return False
    for glob in globs:
        if path.match(glob):
            return True
    return False