How to skip certain directory in the filter?

I know the following filter :
name match *.(h|hpp|c|cpp|ini)

If I want to skip all files in the subfolder named "X"
I try to add
and name mismatch X

However, it doesn't work.

Can someone help me ? thank you very much.

Have a look at this thread: How to filter items by location or sub-folder

(I just moved it into the FAQs area. It wasn't there when you asked originally, don't worry. :slight_smile:)

Yes, it works. Thank you.

Best Regards.