Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Include/Exclude filters

 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
Adequat



Joined: 05 Jul 2006
Posts: 65

PostPosted: Sun Aug 23, 2009 8:54 am    Post subject: Include/Exclude filters Reply with quote

The doc says:
<<
Exclude files matching the wildcard: '*.*'
Include files matching the wildcard: '*.*'
Specifying both will include ALL files because the "Exclude" filter is above the "Include" filter.
>>

Then this is not clear about how your filter system works. If this would be a serial filter (the most intuitive one), then all files would be excluded in your example. Because:
#0 all files are traversed and evaluated...
#1 all files are excluded...
#2 ...hence no more files to include!

And even the opposite if All Exclude was in 2nd position after All Include :
#0 all files are traversed and evaluated...
#1 all files are included
#2 all files are excluded...

So, can you please give more details about how the order of filters apply? Thanks.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8763

PostPosted: Sun Aug 23, 2009 11:55 pm    Post subject: Reply with quote

Hi Adequat, lower filters in the list overwrites higher ones, that is:

#0 files are traversed and evaluated...
#1 file is excluded
#2 file is included

If the filters were:
Exclude files matching the wildcard: '*.*'
Include files matching the wildcard: '*.xls'

That would include only xls files.
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Adequat



Joined: 05 Jul 2006
Posts: 65

PostPosted: Wed Aug 26, 2009 7:38 am    Post subject: Reply with quote

So, this means any Exclude filter, placed anywhere before any Include filter, is totaly ignored. Right?
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8763

PostPosted: Wed Aug 26, 2009 12:55 pm    Post subject: Reply with quote

Every file is processed through the list of filters, from top to bottom, to decide if the file is excluded or not. For instance

filters:
exclude *.txt
include test.*

file test.txt is included
file doc.txt is excluded

filters:
include *.txt
exclude test.*

file test.txt is excluded
file doc.txt is included
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: