MCPcopy Index your code
hub / github.com/rclone/rclone / startTransfers

Method startTransfers

fs/sync/sync.go:531–537  ·  view source on GitHub ↗

This starts the background transfers

()

Source from the content-addressed store, hash-verified

529
530// This starts the background transfers
531func (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
540func (s *syncCopyMove) stopTransfers() {

Callers 1

runMethod · 0.95

Calls 2

pairCopyOrMoveMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected