MCPcopy
hub / github.com/rclone/rclone / startRenamers

Method startRenamers

fs/sync/sync.go:547–556  ·  view source on GitHub ↗

This starts the background renamers.

()

Source from the content-addressed store, hash-verified

545
546// This starts the background renamers.
547func (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
559func (s *syncCopyMove) stopRenamers() {

Callers 1

runMethod · 0.95

Calls 2

pairRenamerMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected