fix: Fixed the issue of incorrect file extension preventing file search.

This commit is contained in:
real-zony
2022-12-13 22:33:34 +08:00
parent a46abba2f9
commit 2f2e67f3e6
2 changed files with 7 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ namespace ZonyLrcTools.Cli.Commands.SubCommand
{
_logger.LogInformation("开始扫描文件夹,请稍等...");
var files = (await _fileScanner.ScanAsync(Source, DecryptoFactory.KnownExtensions))
var files = (await _fileScanner.ScanAsync(Source, DecryptoFactory.KnownExtensions.Select(x => $"*{x}")))
.SelectMany(f => f.FilePaths)
.ToList();