From b7df76b76e5fe7b47212c4aabee4b8da44f6d764 Mon Sep 17 00:00:00 2001 From: Arnas Udovic Date: Fri, 9 Aug 2024 12:39:02 +0300 Subject: [PATCH] support exclude filter #2 --- tree.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tree.go b/tree.go index b9caae3..d5e244d 100644 --- a/tree.go +++ b/tree.go @@ -112,6 +112,10 @@ func (t Tree) Filter(filter map[string][]string) (Tree, bool) { exclude = true } } + + if negative && !exclude { + addFile = true + } } if addFile && !exclude { found = true