"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
qingstor: upgrade to v3 SDK and fix listing loop
Nick Craig-Woodc2050172aa3b
diff --git a/backend/qingstor/qingstor.go b/backend/qingstor/qingstor.goindex 447726c4c..5492e79e9 100644--- a/backend/qingstor/qingstor.go+++ b/backend/qingstor/qingstor.go@@ -24,9 +24,9 @@ import ("github.com/rclone/rclone/fs/fshttp""github.com/rclone/rclone/fs/hash""github.com/rclone/rclone/fs/walk"- qsConfig "github.com/yunify/qingstor-sdk-go/config"- qsErr "github.com/yunify/qingstor-sdk-go/request/errors"- qs "github.com/yunify/qingstor-sdk-go/service"+ qsConfig "github.com/yunify/qingstor-sdk-go/v3/config"+ qsErr "github.com/yunify/qingstor-sdk-go/v3/request/errors"+ qs "github.com/yunify/qingstor-sdk-go/v3/service")// Register with Fs@@ -582,9 +582,12 @@ func (f *Fs) list(ctx context.Context, dir string, recurse bool, fn listFn) erroreturn err}}+ if resp.HasMore != nil && !*resp.HasMore {+ break+ }// Use NextMarker if set, otherwise use last Keyif resp.NextMarker == nil || *resp.NextMarker == "" {- //marker = resp.Keys[len(resp.Keys)-1].Key+ fs.Errorf(f, "Expecting NextMarker but didn't find one")break} else {marker = resp.NextMarkerdiff --git a/backend/qingstor/upload.go b/backend/qingstor/upload.goindex c00d532fe..8c76885f5 100644--- a/backend/qingstor/upload.go+++ b/backend/qingstor/upload.go@@ -15,7 +15,7 @@ import ("github.com/pkg/errors""github.com/rclone/rclone/fs"- qs "github.com/yunify/qingstor-sdk-go/service"+ qs "github.com/yunify/qingstor-sdk-go/v3/service")const (