Skip to content
This repository was archived by the owner on Nov 6, 2018. It is now read-only.
This repository was archived by the owner on Nov 6, 2018. It is now read-only.

Matcher returns wrong stems #144

@reliak

Description

@reliak

This addresses issue aspnet/Announcements#58

I have the following folder structure:

  • root
    • subfolder
      • sub1
      • sub2
      • sub3

I wanna find all files via:

var m = new Matcher();
m.AddInclude(@"**/*.*");
var res = m.Execute(new DirectoryInfoWrapper(new DirectoryInfo(root)));

As shown below, the Stems for files in sub2 and sub3 are wrong.
globissue

When I use a glob pattern starting with subfolder (see below) instead of the wildcards, all stems are correct:

var m = new Matcher();
m.AddInclude(@"subfolder/**/*.*");
var res = m.Execute(new DirectoryInfoWrapper(new DirectoryInfo(root)));

Update: Apparently the problem is not the glob pattern at the beginning. I inserted a folder under subfolder. When I now use the above pattern ("subfolder/**/*.*") I also get wrong stems.

/cc @anurse

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions