From bb3c0d45f2e64eab2b83e7f5376e1b621f0821a9 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Wed, 24 Jun 2020 13:22:29 +0100 Subject: [PATCH] s3: Use list object v1 in case of GCS (#3274) --- cmd/client-s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/client-s3.go b/cmd/client-s3.go index 6631a7f2..14c805b6 100644 --- a/cmd/client-s3.go +++ b/cmd/client-s3.go @@ -1325,7 +1325,7 @@ func (c *S3Client) listObjectWrapper(ctx context.Context, bucket, object string, if isGoogle(c.targetURL.Host) { // Google Cloud S3 layer doesn't implement ListObjectsV2 implementation // https://github.com/minio/mc/issues/3073 - return c.api.ListObjectsV2WithContext(ctx, bucket, object, isRecursive, doneCh) + return c.api.ListObjectsWithContext(ctx, bucket, object, isRecursive, doneCh) } if metadata { return c.api.ListObjectsV2WithMetadataWithContext(ctx, bucket, object, isRecursive, doneCh)