I want to exclude everything in a folder named foo
, except for stuff inside a folder named bar
.
foo
can appear anywhere in the directory structure more than once.
bar
can appear anywhere in the directory structure under foo
.
I tried
/**/foo/**
!/**/foo/**/bar/**
but it didn't work. It still ignores all the foo
. It refuses to allow bar
.
How do I solve this?