def contains_glob(path_to_directory, pattern, wanted=None):
    """Whether the given path contains an item matching the given glob"""
    if not path_to_directory:
        return False
    needed = make_needed(pattern, path_to_directory, wanted)
    for name in _names_in_directory(path_to_directory):
        if needed(name):
            return True
    return False
def contains_glob ( path_to_directory , pattern , wanted = None ) : if not path_to_directory : return False needed = make_needed ( pattern , path_to_directory , wanted ) for name in _names_in_directory ( path_to_directory ) : if needed ( name ) : return True return False
Whether the given path contains an item matching the given glob