s3: Use list object v1 in case of GCS (#3274)

This commit is contained in:
Anis Elleuch
2020-06-24 06:31:59 -07:00
committed by Harshavardhana
parent 9ebde383d4
commit 09db3419e7
+1 -1
View File
@@ -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)