This starts the background renamers.
()
| 545 | |
| 546 | // This starts the background renamers. |
| 547 | func (s *syncCopyMove) startRenamers() { |
| 548 | if !s.trackRenames { |
| 549 | return |
| 550 | } |
| 551 | s.renamerWg.Add(s.ci.Checkers) |
| 552 | for i := range s.ci.Checkers { |
| 553 | fraction := (100 * i) / s.ci.Checkers |
| 554 | go s.pairRenamer(s.toBeRenamed, s.toBeUploaded, fraction, &s.renamerWg) |
| 555 | } |
| 556 | } |
| 557 | |
| 558 | // This stops the background renamers |
| 559 | func (s *syncCopyMove) stopRenamers() { |
no test coverage detected