diff --git a/cmd/client-s3.go b/cmd/client-s3.go index 9a8592f0..d9783bb7 100644 --- a/cmd/client-s3.go +++ b/cmd/client-s3.go @@ -1433,6 +1433,10 @@ func (c *S3Client) Stat(ctx context.Context, opts StatOptions) (*ClientContent, return nil, probe.NewError(objectStat.Err) } + if objectStat.Key != object { + break + } + return c.objectInfo2ClientContent(bucket, objectStat), nil }