Filter files in directory but not sub-directories

Get help for specific problems
Posts: 2
Joined: 15 Apr 2019

Sam

I have directories like this:

Directory A
Subdirectory B
Subdirectory C

I need to exclude certain files in Directory A but not B and C. When I add the line:

\Directory A\*.iso

to the exclude filter, it also excludes ISO files in B and C. I tried to specify "this directory" with a dot, with:

\Directory A\.\*.iso

but that failed to exclude anything.

Thanks for your help.
User avatar
Posts: 2451
Joined: 22 Aug 2012

Plerry

If there are only few *.iso files (with static names) in A, you may exclude these files individually, avoiding the greedy * .
Otherwise, you can define two (identical) left-right folder pairs.
The first pair having local filter settings (using the funnel icon in between each folder pair) as per your above settings. This will sync everything, apart from any *.iso files.
The second pair having a local Include Filter of \*\*.iso and an empty Exclude filter. This will sync any *.iso files, apart from those in (root directory) A.