Ejemplo n.º 1
0
    /// <inheritdoc />
    public bool Take(string path)
    {
        // If Allowlist is empty take everything
        if (!_allowAny)
        {
            return(true);
        }

        return(WildcardHelper.IsMatch(path, _allowPatterns));
    }
Ejemplo n.º 2
0
    /// <inheritdoc />
    public bool Skip(string path)
    {
        // If Blocklist is empty don't skip anything
        if (!_blockAny)
        {
            return(false);
        }

        return(WildcardHelper.IsMatch(path, _blockPatterns));
    }