Пример #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);
            }
        }