def METHOD_NAME(directory, pattern):
    """Find all files matching *pattern* under ``directory``."""
    matches = []
    for root, _, filenames in os.walk(directory):
        for filename in fnmatch.filter(filenames, pattern):
            matches.append(os.path.join(root, filename))
    return matches