feat: 移动文件完成后清空 scan_log 续传记录
This commit is contained in:
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user