"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
Fix differences print out on check
Nick Craig-Wood754c54b64fc6
diff --git a/fs/accounting.go b/fs/accounting.goindex a5c455f97..d8631dc46 100644--- a/fs/accounting.go+++ b/fs/accounting.go@@ -106,10 +106,17 @@ func (s *StatsInfo) Errors(errors int64) {s.errors += errors}+// GetErrors reads the number of errors+func (s *StatsInfo) GetErrors() int64 {+ s.lock.RLock()+ defer s.lock.RUnlock()+ return s.errors+}+// Errored returns whether there have been any errorsfunc (s *StatsInfo) Errored() bool {- s.lock.Lock()- defer s.lock.Unlock()+ s.lock.RLock()+ defer s.lock.RUnlock()return s.errors != 0}diff --git a/rclone.go b/rclone.goindex 232bbb09b..e66c2c010 100644--- a/rclone.go+++ b/rclone.go@@ -300,7 +300,7 @@ func Check(fdst, fsrc fs.Fs) {log.Printf("Waiting for checks to finish")checkerWg.Wait()- log.Printf("%d differences found", fs.Stats.Errors)+ log.Printf("%d differences found", fs.Stats.GetErrors())}// List the Fs to stdout