public void Initialize() { _meziantouGlob = Glob.Parse(Pattern, GlobOptions.None); _globExpressions = new GlobExpressions.Glob(Pattern, GlobExpressions.GlobOptions.MatchFullPath); _globExpressionsCompiled = new GlobExpressions.Glob(Pattern, GlobExpressions.GlobOptions.MatchFullPath | GlobExpressions.GlobOptions.Compiled); _dotnetGlob = DotNet.Globbing.Glob.Parse(Pattern); }
public static string[] Find(string root, string pattern) { return(DoGlob.Files(root, pattern) .Select(i => Path.Combine(root, i)) .ToArray()); }