support exclude filter #2
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Arnas Udovic 2024-08-09 12:39:02 +03:00
parent aae1ca7456
commit b7df76b76e

View file

@ -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