"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
fichier: fix error code parsing
alexia20c9e0cab648
diff --git a/backend/fichier/api.go b/backend/fichier/api.goindex c0e3843dc..8e1bdbb61 100644--- a/backend/fichier/api.go+++ b/backend/fichier/api.go@@ -28,14 +28,14 @@ var retryErrorCodes = []int{509, // Bandwidth Limit Exceeded}-var errorRegex = regexp.MustCompile(`#\d{1,3}`)+var errorRegex = regexp.MustCompile(`#(\d{1,3})`)func parseFichierError(err error) int {matches := errorRegex.FindStringSubmatch(err.Error())if len(matches) == 0 {return 0}- code, err := strconv.Atoi(matches[0])+ code, err := strconv.Atoi(matches[1])if err != nil {fs.Debugf(nil, "failed parsing fichier error: %v", err)return 0