This starts the background transfers
()
| 529 | |
| 530 | // This starts the background transfers |
| 531 | func (s *syncCopyMove) startTransfers() { |
| 532 | s.transfersWg.Add(s.ci.Transfers) |
| 533 | for i := range s.ci.Transfers { |
| 534 | fraction := (100 * i) / s.ci.Transfers |
| 535 | go s.pairCopyOrMove(s.ctx, s.toBeUploaded, s.fdst, fraction, &s.transfersWg) |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | // This stops the background transfers |
| 540 | func (s *syncCopyMove) stopTransfers() { |
no test coverage detected