fix: don't scan dot-first file to render.

This commit is contained in:
jackfiled 2024-08-31 19:11:34 +08:00
parent 9ebacf87e5
commit 45c35d7442

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 = [];