Include AND exclude files

Post your new features ideas and suggestions here.
Post Reply
Gingko
Posts: 31
Joined: Thu Aug 27, 2009 4:51 pm
Location: France

Include AND exclude files

Post 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 255 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

Gingko
Posts: 31
Joined: Thu Aug 27, 2009 4:51 pm
Location: France

Re: Include AND exclude files

Post 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

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Re: Include AND exclude files

Post by grigsoft »

In fact you can do it now with !, like

Code: Select all

*.exe ! back*

Gingko
Posts: 31
Joined: Thu Aug 27, 2009 4:51 pm
Location: France

Re: Include AND exclude files

Post 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

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Re: Include AND exclude files

Post 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 )

Post Reply