Skip to content

Support globbing directories in addition to files #829

@aspnet-hello

Description

@aspnet-hello

From @ChengTian on Wednesday, July 29, 2015 2:56:39 PM

Today we only support globbing files given some patterns. We should allow globbing directories as well.

Sample usage:

var matcher = new Matcher();
matcher.AddInclude("submodules/*/src");
var results = matcher.GetResultsInFullPath(solutionRoot);

and it turns something like
[ "solutionRoot/submodules/FileSystem/src", "solutionRoot/submodules/NuGet/src"]

This is useful in certain scenarios like project resolution.

/cc @troydai

Copied from original issue: aspnet/FileSystem#118

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions