"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
sync: Fix log message containing <nil>
Nick Craig-Wood7047c67a5e1a
diff --git a/fs/sync.go b/fs/sync.goindex 8d2445ae0..d7f8f3977 100644--- a/fs/sync.go+++ b/fs/sync.go@@ -941,12 +941,12 @@ func (s *syncCopyMove) transfer(dst, src BasicInfo, job listDirJob, jobs *[]list} else {// FIXME src is file, dst is directoryerr := errors.New("can't overwrite directory with file")- Errorf(srcX, "%v", err)+ Errorf(dst, "%v", err)s.processError(err)}case *Dir:// Do the same thing to the entire contents of the directory- dstX, ok := dst.(*Dir)+ _, ok := dst.(*Dir)if ok {if job.srcDepth > 0 && job.dstDepth > 0 {*jobs = append(*jobs, listDirJob{@@ -958,7 +958,7 @@ func (s *syncCopyMove) transfer(dst, src BasicInfo, job listDirJob, jobs *[]list} else {// FIXME src is dir, dst is fileerr := errors.New("can't overwrite file with directory")- Errorf(dstX, "%v", err)+ Errorf(dst, "%v", err)s.processError(err)}default: