def is_ignored(name, ignored_file_checker):
    """Checks if the given path is ignored or not.

    :param name: file or folder name
    :type name: string
    :param ignored_file_checker: checker object for checking ignored paths
    :type ignored_file_checker: igittigitt.IgnoreParser
    :return: has a ignored prefix, name or not
    :rtype: bool
    """
    # if ignored_file_checker.match(name):
    #     print(f"{name} is ignored.")
    return ignored_file_checker.match(name)