"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
operations: make reopen code error on NoLowLevelRetry errors - fixes #3777
Nick Craig-Wood4537d9b5cf29
diff --git a/fs/operations/reopen.go b/fs/operations/reopen.goindex d0af5f5b3..879bffee3 100644--- a/fs/operations/reopen.go+++ b/fs/operations/reopen.go@@ -7,6 +7,7 @@ import ("github.com/pkg/errors""github.com/rclone/rclone/fs"+ "github.com/rclone/rclone/fs/fserrors")// reOpen is a wrapper for an object reader which reopens the stream on error@@ -104,7 +105,7 @@ func (h *reOpen) Read(p []byte) (n int, err error) {h.err = err}h.read += int64(n)- if err != nil && err != io.EOF {+ if err != nil && err != io.EOF && !fserrors.IsNoLowLevelRetryError(err) {// close underlying streamh.opened = false_ = h.rc.Close()