using Microsoft.Extensions.FileSystemGlobbing;
public static void Main()
var matcher = new Matcher();
matcher.AddInclude("**");
matcher.AddExclude("aaa/*/ccc");
var match = matcher.Match(new[] { "aaa/", "aaa/123/ccc", "aaa/user/123/ccc" }).Files.Select(x => x.Path).ToArray();
Console.WriteLine("Not Match");
Console.WriteLine(String.Join(", ", match));