#1041 [Filter] Filefilter matches only first part of the path

open
nobody
5
2007-04-13
2005-11-23
Anonymous
No

The directory matching does not work as expected when
the exclusive (exclude) flag is set in conjunction
with searching subdirectories.

As an example, I defined a pattern:

d: \\src\\

to match only files which occur in directories of which
a component's name is 'src'.

This pattern fails to find any files when the '\src\'
directory is not an immediate descendent of the compare
directory. I assume this is because a directory search
is performed with the pattern '\src\'

Instead, all subdirectories should always be
enumerated, and then the search pattern(s) applied to
each of the found directories. This would allow the
pattern to be a substring of the pathname.

Submitter: Marty Klos (marty.klos@ravenano.com)

Discussion

  • elsapo

    elsapo - 2005-12-04

    Logged In: YES
    user_id=1195173

    (Submitter didn't include version info.)

    Described behavior is that "d:\\src\\" will not match
    subdirectory "Plugins\src" because the "Plugins" directory
    will fail the filter, and WinMerge will therefore not
    discover the subdirectory "src" beneath it. This is a valid
    criticism of current implementation of file filters.

     
  • Kimmo Varis

    Kimmo Varis - 2007-04-13

    Logged In: YES
    user_id=631874
    Originator: NO

    Updating summary (adding keyword 'Filter').

     
  • Kimmo Varis

    Kimmo Varis - 2007-04-13
    • summary: Directory match with exclude flag does not work as expected --> [Filter] Filefilter matches only first part of the path
     

Log in to post a comment.