filter to exclude folder except if any folder contains a specific name

Get help for specific problems
Posts: 1
Joined: 8 Feb 2023

random741

Hi,

I want to create a filter that excluded a folder except if it contains a folder called pdf.
for example
exclude folder AA, AC and subfolders, but include ABAA as a folder of ABA as a folder of AB but not the files inside AB, ABA and ABAA but include all the files and folders inside PDF.
Also I want to include folder B and C.
A
-----> AA
-----> -----> AAA
-----> -----> -----> AAAA

-----> AB
-----> -----> ABA
-----> -----> -----> ABAA
-----> -----> -----> -----> PDF
-----> -----> -----> -----> -----> files

-----> AC
-----> -----> ACA
-----> -----> -----> ACAA

B
-----> BA

C
-----> CA
Posts: 1202
Joined: 8 May 2006

therube

Rather then excluding, would an Include filter work?

So include (& offhand I don't know how to set up filters, but)...

*/PDF/.*
B/*
C/*