public void TestParentFolderSearch() { var Pattern = @"C:\dev\wildlife-copy\artifacts\**\project.json\..\wwwroot\**\*"; var glob = new GlobPath(Pattern); var files = glob.MatchedFiles().ToArray(); }
public void TestGlob() { var glob = new GlobPath(new DirectoryInfo(Path.Combine(Directory.GetCurrentDirectory(), "../../../../")).FullName + "**/bin/**/*.exe"); var files = glob.MatchedFiles(); foreach (var file in files) { Console.WriteLine(file); } }
public void TestRootFinding() { var Pattern = @"C:\output\**\*"; var glob = new GlobPath(Pattern); foreach (var file in glob.MatchedFiles()) { Console.WriteLine(file); } var globtest = new Glob(glob.Pattern); var a = globtest.IsMatch(@"C:/output/ApplicationManifest.xml"); }
public void TestProgram1() { // Program.Main(new string[] { }); var glob = new GlobPath("C:/dev/blobtest space/*.txt"); var files = glob.MatchedFiles(); foreach (var file in files) { Console.WriteLine(file); } }