コード例 #1
0
 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);
 }
コード例 #2
0
 public static string[] Find(string root, string pattern)
 {
     return(DoGlob.Files(root, pattern)
            .Select(i => Path.Combine(root, i))
            .ToArray());
 }