feat(analyze): 支持递归扫描子目录
This commit is contained in:
@@ -101,9 +101,9 @@ public class AnalyzeCommand : Command
|
||||
return;
|
||||
}
|
||||
|
||||
// 扫描日志文件
|
||||
// 扫描日志文件(包含子目录)
|
||||
var allFiles = LogExtensions
|
||||
.SelectMany(ext => Directory.GetFiles(dataDir, $"*{ext}"))
|
||||
.SelectMany(ext => Directory.GetFiles(dataDir, $"*{ext}", SearchOption.AllDirectories))
|
||||
.ToList();
|
||||
|
||||
if (allFiles.Count == 0)
|
||||
|
||||
Reference in New Issue
Block a user