修复: .trash WARN 降级 + ToolCard 分组标题增强

- .trash 跨盘迁移从 WARN 降为 DEBUG(预期行为,非异常)
- ToolCard 分组标题增加文件路径摘要(取前3个文件名),
  收起态也能看到影响了哪些文件
This commit is contained in:
2026-06-28 00:25:37 +08:00
parent b7b004dd68
commit cf223fc08b
3 changed files with 32 additions and 2 deletions

View File

@@ -748,8 +748,9 @@ impl AppState {
let new_trash = data_dir.join(".trash");
if old_trash.exists() && !new_trash.exists() {
if let Err(e) = std::fs::rename(&old_trash, &new_trash) {
tracing::warn!(
"迁移 .trash 失败(从 {:?} 到 {:?}): {} (原目录保留,新目录将自动创建)",
// 跨盘 rename 失败(E:→C:),静默跳过,新目录自动创建
tracing::debug!(
"迁移 .trash 跨盘失败(从 {:?} 到 {:?}): {} (原目录保留,新目录将自动创建)",
old_trash, new_trash, e,
);
}