"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
fs/march: improve errors when root source/destination doesn't exist
Nick Craig-Wood1773717a4745
diff --git a/fs/march/march.go b/fs/march/march.goindex 715f5e299..1f694a36e 100644--- a/fs/march/march.go+++ b/fs/march/march.go@@ -404,14 +404,22 @@ func (m *March) processJob(job listDirJob) ([]listDirJob, error) {// Wait for listings to complete and report errorswg.Wait()if srcListErr != nil {- fs.Errorf(job.srcRemote, "error reading source directory: %v", srcListErr)+ if job.srcRemote != "" {+ fs.Errorf(job.srcRemote, "error reading source directory: %v", srcListErr)+ } else {+ fs.Errorf(m.Fsrc, "error reading source root directory: %v", srcListErr)+ }srcListErr = fs.CountError(srcListErr)return nil, srcListErr}if dstListErr == fs.ErrorDirNotFound {// Copy the stuff anyway} else if dstListErr != nil {- fs.Errorf(job.dstRemote, "error reading destination directory: %v", dstListErr)+ if job.dstRemote != "" {+ fs.Errorf(job.dstRemote, "error reading destination directory: %v", dstListErr)+ } else {+ fs.Errorf(m.Fdst, "error reading destination root directory: %v", dstListErr)+ }dstListErr = fs.CountError(dstListErr)return nil, dstListErr}