Page 1 of 1

Include AND exclude files

Posted: Wed Oct 07, 2020 10:03 am
by Gingko
Hello.

When using Synchronize It! for comparing folders, you can define a list of wildcards for including OR
excluding files for/from being part of the comparizon.

grigsoft-syncit.png
grigsoft-syncit.png (65.16 KiB) Viewed 2175 times

But why choosing between include or exclude?

Sometimes I'd be happy to be able to have both, thus being able to have a list of wildcards to include AND another list of wildcard to exclude from the files that I have included.

Gingko

Re: Include AND exclude files

Posted: Wed Oct 07, 2020 10:10 am
by Gingko
… And even, if you don't want to make a too big change, a simple solution to that would be deciding that if a wildcard is prefixed by some uncommon character like “-” or “^” or “~”, this wildcard would be an opposite wildcard in regards to the previous ones (that is, excluding for an including list, and excluding for an including list).

After that, you just have to certify that all wildcards will be applied in left to right order.

This would have to be written somewhere, of course.

Gingko

Re: Include AND exclude files

Posted: Sun Oct 11, 2020 6:15 pm
by grigsoft
In fact you can do it now with !, like

Code: Select all

*.exe ! back*

Re: Include AND exclude files

Posted: Thu Oct 15, 2020 5:28 am
by Gingko
Hello Igor,

I see… I use Synchronize It! for 15 years now and I never knew about this feature.

I just checked in the documentation, it is there, but I really would have had to read it all in order to learn that.

I notice one think however:
The “!” switch seems to apply to all wildcards located on the right of it.
I think it would have been more intuitive if it had applied to the next one only (and having to eventually repeat if several are needed).
… just a thought … :)

Gingko

Re: Include AND exclude files

Posted: Thu Oct 15, 2020 8:11 am
by grigsoft
Might be you are right, but I can not change this to ruin all existing profiles. and anyway it's matter of taste )