Rule that ignore everything except some items

Hi,
I’m trying to make a rule using gitignore syntax to ignore everything in a folder but keep some item synced. For example I have this folder structure:

image

I want to keep all .txt files and used this syntax with git and it work just fine:

Foo/*/**
!Foo/*/*.txt

Unfortunately that does not work with insync. Is it possible to do the same thing with Insync syntax?

Hi @hieudmg, we currently do not have a feature that supports this case since Ignore Rules is based on gitignore which only matches based on file/directory name patterns. I can bring this up as a possible improvement. :slight_smile: