Is there a opensource equivalent to the FileMatcher class in MSBuild?
Asked Answered
U

0

3

I'm building a command line tool which will need to resolve a set of files and folders based on one or more relative paths that contain single (*) wildcards, as well as any-depth-folder (**) wildcards.

Ideally, I would like a class similar that the one in MSBuild, so a usage pattern like:

FileMatcher matcher = new FileMatcher();
IList<string> files = matcher.Match("c:\data\**\bin\*.dll", "d:\da*\*.xml", "c:\temp\file1.xml")

Is there any open-source utility libraries out there which implement this functionality in .NET?

Unrefined answered 30/9, 2012 at 0:8 Comment(1)
Did you ever come up with a solution for this?Horsefaced

© 2022 - 2024 — McMap. All rights reserved.