def METHOD_NAME(path, name, force=False):
    if isinstance(force, bool):
        return force
    else:
        for f in force:
            if "*" in f or "?" in f:
                if fnmatch(path, f):
                    return True
            elif name == f:
                return True
    return False