Exclude all but

Get help for specific problems
Posts: 2
Joined: 20 Oct 2021

DustyOwl

Hi, it's possible exclude sync of all subfolders of a given folder but not subfolders that starts with some character e.g. "i-"?

Example:
\AAA\abc
\AAA\i-bcd
\AAA\cde
\AAA\i-def
\AAA\text.txt

I would sync all files inside AAA, but just subfolders inside AAA that have "i-" prefix.
Thanks
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

Change the include filter from * to \AAA\i*\* and see if that gets what you want.
Posts: 2
Joined: 20 Oct 2021

DustyOwl

Thanks xCSxXenon, but in that way files inside AAA (as text.txt in example) will not be synced and moreover folders as BBB, CCC, ... siblings of AAA will not be updated.

Thanks Zenju, I saw that, but now I understand this...
For future reference:
I write (local exclude) \AAA\*\ excluding all subfolders of AAA (keeping files)
and write (local include) \AAA\i-* including subfolders of AAA with "i-" prefix.

......manual is a little bit concise on that explanation :) also because it's not easy understand what "two folder pairs" and "distinct local filters" are, imho.

THANKS
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

Ah yes! I forgot that about the exclusion