示例#1
0
        public void TestParentFolderSearch()
        {
            var Pattern = @"C:\dev\wildlife-copy\artifacts\**\project.json\..\wwwroot\**\*";
            var glob    = new GlobPath(Pattern);

            var files = glob.MatchedFiles().ToArray();
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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");
        }
示例#4
0
        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);
            }
        }