Path globbing for .NET
Single-source-file path globbing for .NET (netstandard2.0 and net461).
System.IO.Abstractions
)**
expansion?
matches a single character*
matches zero or more characters**
matches zero or more recursive directories, e.g. a\**\x
matches a\x
, a\b\x
, a\b\c\x
, etc.[...]
matches a set of characters, syntax is the same as character groups in Regex.{group1,group2,...}
matches any of the pattern groups. Groups can contain groups and patterns, e.g. {a\b,{c,d}*}
.Install the NuGet package Glob.cs
. Then:
var dlls = Glob.Expand(@"c:\windows\system32\**\*.dll");