diff --git a/src/MaaWpfGui/ViewModels/UserControl/Settings/IssueReportUserControlModel.cs b/src/MaaWpfGui/ViewModels/UserControl/Settings/IssueReportUserControlModel.cs index 0c0e15a08a..e3fb7cb54e 100644 --- a/src/MaaWpfGui/ViewModels/UserControl/Settings/IssueReportUserControlModel.cs +++ b/src/MaaWpfGui/ViewModels/UserControl/Settings/IssueReportUserControlModel.cs @@ -126,9 +126,12 @@ public class IssueReportUserControlModel : PropertyChangedBase } } - // ====== part02+:debug 子目录文件按 PartSize 分卷 ====== + // ====== part02:debug 子目录文件按 PartSize 分卷 ====== + var threeDaysAgo = DateTime.Now.AddDays(-3); var debugSubFiles = Directory.EnumerateFiles(debugPath, "*", SearchOption.AllDirectories) - .Where(f => Path.GetDirectoryName(f) != debugPath).ToList(); + .Where(f => Path.GetDirectoryName(f) != debugPath) + .Where(f => new FileInfo(f).LastWriteTime >= threeDaysAgo) + .ToList(); int partNumber = 2; while (debugSubFiles.Count > 0)