def METHOD_NAME(pattern, path):
    """Find folders."""
    result = []
    for root, dirs, _ in os.walk(path):
        for name in dirs:
            if fnmatch.fnmatch(name, pattern):
                result.append(os.path.join(root, name))
    return result