perf: debug下非根路径文件限3日内 (#14919)

This commit is contained in:
Status102
2025-11-29 19:05:23 +08:00
committed by GitHub
parent 849c34c7fe
commit 784baa5a2a

View File

@@ -126,9 +126,12 @@ public class IssueReportUserControlModel : PropertyChangedBase
}
}
// ====== part02+debug 子目录文件按 PartSize 分卷 ======
// ====== part02debug 子目录文件按 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)