write: dotnet-performace-8 #7

Merged
jackfiled merged 2 commits from write-dotnet-performance into master 2024-08-31 19:13:41 +08:00
Showing only changes of commit 45c35d7442 - Show all commits

View File

@ -63,8 +63,9 @@ public partial class EssayScanService(
private async Task<ConcurrentBag<BlogContent>> ScanContentsInternal(DirectoryInfo directory)
{
// 扫描以md结果的但是不是隐藏文件的文件
IEnumerable<FileInfo> markdownFiles = from file in directory.EnumerateFiles()
where file.Extension == ".md"
where file.Extension == ".md" && !file.Name.StartsWith('.')
select file;
ConcurrentBag<(string, string)> fileContents = [];