Author |
Message |
Adequat
Joined: 05 Jul 2006 Posts: 65
|
Posted: Sun Aug 23, 2009 8:54 am Post subject: Include/Exclude filters |
|
|
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: 8759
|
Posted: Sun Aug 23, 2009 11:55 pm Post subject: |
|
|
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
|
Posted: Wed Aug 26, 2009 7:38 am Post subject: |
|
|
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: 8759
|
Posted: Wed Aug 26, 2009 12:55 pm Post subject: |
|
|
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 |
|
|
|