Example #1
0
        public static void AddDirectoryFilterGlob(this FilterOptions options, string globPattern, GlobOptions globOptions = GlobOptions.None, bool negateFilter = false)
        {
            var filter = new GlobFilter(globPattern, globOptions);

            if (negateFilter)
            {
                filter.NegateFilter();
            }

            options.AddDirectoryFilters(filter);
        }
        public static void AddFileFilterGlob(this FilterOptions options, string globPattern, bool negateFilter = false)
        {
            var filter = new GlobFilter(globPattern);

            if (negateFilter)
            {
                filter.NegateFilter();
            }

            options.AddFileFilters(filter);
        }