public static PageTreeItem <IFileInfo> LoadFiles(this IPageDirectoryLoader pageDirectoryLoader, IFileProvider fileProvider, string pageGlob, string indexGlob) { var pageMatcher = new Matcher(StringComparison.OrdinalIgnoreCase); pageMatcher.AddInclude(pageGlob); var indexMatcher = new Matcher(StringComparison.OrdinalIgnoreCase); indexMatcher.AddInclude(indexGlob); return(pageDirectoryLoader.LoadFiles(fileProvider, new PageDirectoryLoaderOptions { NormalPageMatcher = pageMatcher, IndexPageMatcher = indexMatcher })); }
public PageDirectoryLoaderTests() { _pageDirectoryLoader = Statik.GetPageDirectoryLoader(); _directory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Guid.NewGuid().ToString()); Directory.CreateDirectory(_directory); }