Skip to content

Commit 66acb7b

Browse files
committed
Fix | 修复空文件夹也会被读取为话的bug
1 parent 76a4e0b commit 66acb7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ShadowViewer.Plugin.Local/Services/ComicService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ private async Task<ShadowTreeNode> SaveComic(string path, long comicId, bool fin
230230
{
231231
if (findThumb) thumb = comicNode.Children.FirstOrDefault(child => child.IsPic);
232232

233-
foreach (var child in comicNode.Children.Where(child => child.IsDirectory))
233+
foreach (var child in comicNode.Children.Where(child => child is { IsDirectory: true, Count: > 0 }))
234234
{
235235
pics.AddRange(await CreateEpisode(comicId, child, number));
236236
number++;

0 commit comments

Comments
 (0)