Skip to content

fix: Use File Enumeration/Deletion for Auto-Backup Limit Cleanup#1750

Merged
HelloWRC merged 1 commit into
ClassIsland:masterfrom
yusancky:autoBackupLimit
Apr 12, 2026
Merged

fix: Use File Enumeration/Deletion for Auto-Backup Limit Cleanup#1750
HelloWRC merged 1 commit into
ClassIsland:masterfrom
yusancky:autoBackupLimit

Conversation

@yusancky

Copy link
Copy Markdown
Contributor

这个 Pull Request 做了什么?

自动备份清理逻辑原本使用 Directory.EnumerateDirectories 查找旧备份,但自动备份实际均为 .zip 文件,导致查询结果始终为空,AutoBackupLimit 限制未生效,备份文件会无限累积。这个 PR 将 Directory.EnumerateDirectories 改为 Directory.EnumerateFilesDirectory.Delete 改为 File.Delete,以正确识别并清理过期备份文件,使备份数量限制正常生效。

检查清单

  • 我已经在本地测试过这个 PR,确保欲实现的功能或修复的问题能正常工作。

自动备份清理逻辑原本使用 `Directory.EnumerateDirectories` 查找旧备份,但自动备份实际均为 `.zip` 文件,导致查询结果始终为空,`AutoBackupLimit` 限制未生效,备份文件会无限累积。这个提交将 `Directory.EnumerateDirectories` 改为 `Directory.EnumerateFiles`、`Directory.Delete` 改为 `File.Delete`,以正确识别并清理过期备份文件,使备份数量限制正常生效。

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
@yusancky yusancky requested review from a team and HelloWRC as code owners April 11, 2026 02:17
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@HelloWRC

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@HelloWRC HelloWRC merged commit 04544a1 into ClassIsland:master Apr 12, 2026
2 checks passed
@HelloWRC

Copy link
Copy Markdown
Member

感谢您的贡献🤝

昔涟 爱

@yusancky yusancky deleted the autoBackupLimit branch April 12, 2026 03:57
Koharu-Mizuki pushed a commit to Koharu-Mizuki/ClassIsland-RB that referenced this pull request May 24, 2026
…ssIsland#1750)

自动备份清理逻辑原本使用 `Directory.EnumerateDirectories` 查找旧备份,但自动备份实际均为 `.zip` 文件,导致查询结果始终为空,`AutoBackupLimit` 限制未生效,备份文件会无限累积。这个提交将 `Directory.EnumerateDirectories` 改为 `Directory.EnumerateFiles`、`Directory.Delete` 改为 `File.Delete`,以正确识别并清理过期备份文件,使备份数量限制正常生效。

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Koharu-Mizuki pushed a commit to Koharu-Mizuki/ClassIsland-RB that referenced this pull request Jun 19, 2026
…ssIsland#1750)

自动备份清理逻辑原本使用 `Directory.EnumerateDirectories` 查找旧备份,但自动备份实际均为 `.zip` 文件,导致查询结果始终为空,`AutoBackupLimit` 限制未生效,备份文件会无限累积。这个提交将 `Directory.EnumerateDirectories` 改为 `Directory.EnumerateFiles`、`Directory.Delete` 改为 `File.Delete`,以正确识别并清理过期备份文件,使备份数量限制正常生效。

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants