MCPcopy
hub / github.com/rclone/rclone / startDeleters

Method startDeleters

fs/sync/sync.go:590–598  ·  view source on GitHub ↗

This starts the background deletion of files for --delete-during

()

Source from the content-addressed store, hash-verified

588
589// This starts the background deletion of files for --delete-during
590func (s *syncCopyMove) startDeleters() {
591 if s.deleteMode != fs.DeleteModeDuring && s.deleteMode != fs.DeleteModeOnly {
592 return
593 }
594 s.deletersWg.Go(func() {
595 err := operations.DeleteFilesWithBackupDir(s.ctx, s.deleteFilesCh, s.backupDir)
596 s.processError(err)
597 })
598}
599
600// This stops the background deleters
601func (s *syncCopyMove) stopDeleters() {

Callers 1

runMethod · 0.95

Calls 2

processErrorMethod · 0.95
DeleteFilesWithBackupDirFunction · 0.92

Tested by

no test coverage detected