"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
Make a retry error wrapper for a plain error
Nick Craig-Wooda288c2b3a3d8
diff --git a/fs/fs.go b/fs/fs.goindex 8e8cbe065..c213a522b 100644--- a/fs/fs.go+++ b/fs/fs.go@@ -222,6 +222,24 @@ func RetryErrorf(format string, a ...interface{}) error {return retryError(fmt.Sprintf(format, a...))}+// PlainRetryError is an error wrapped so it will retry+type plainRetryError struct {+ error+}++// Retry interface+func (_ plainRetryError) Retry() bool {+ return true+}++// Check interface+var _ Retry = plainRetryError{(error)(nil)}++// RetryError makes an error which indicates it would like to be retried+func RetryError(err error) error {+ return plainRetryError{err}+}+// A channel of Objectstype ObjectsChan chan Object