feat: 移动文件完成后清空 scan_log 续传记录

This commit is contained in:
2025-08-01 21:06:38 +08:00
parent 2e01f6c3c9
commit 2073596fdd
2 changed files with 14 additions and 0 deletions
+5
View File
@@ -360,6 +360,11 @@ func (s *ScanService) runMove(ctx context.Context) {
return
}
// 移动完成后清空续传记录
if err := s.store.ClearScanLog(); err != nil {
fmt.Printf("=== 清空续传记录失败: %v\n", err)
}
fmt.Println("=== 文件移动完成")
s.finish(ScanDone, fmt.Sprintf("文件移动完成,共移动 %d 个文件", len(jobs)))
}