Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

copy: error out if dst could not be listed

Girish Ramakrishnan4c45cbea1823
diff --git a/fs/sync.go b/fs/sync.go
index c7eb57ea2..ff1a85ef4 100644
--- a/fs/sync.go
+++ b/fs/sync.go
@@ -1002,7 +1002,7 @@ func (s *syncCopyMove) processJob(job listDirJob) (jobs []listDirJob) {
if dstListErr == ErrorDirNotFound {
// Copy the stuff anyway
} else if dstListErr != nil {
- s.processError(errors.Wrapf(srcListErr, "error reading destination directory %q", job.remote))
+ s.processError(errors.Wrapf(dstListErr, "error reading destination directory %q", job.remote))
return nil
}