# create three test files and dirs
$ mkdir -p dirs/{foo,bar,baz} && touch dirs/{foo,bar,baz}/file
# one filter works as expected, returning two dirs
$ node -e 'require("readdirp")("dirs", {directoryFilter: ["!foo"]}).on("data", entry => console.log(entry.path))'
bar/file
baz/file
# adding a second filter returns all three dirs while only one is expected
$ node -e 'require("readdirp")("dirs", {directoryFilter: ["!foo", "!bar"]}).on("data", entry => console.log(entry.path))'
bar/file
baz/file
foo/file
Could it be that those filters act like logically OR instead of AND?
Could it be that those filters act like logically OR instead of AND?