func (client *Client) DoesObjectExistWithContext(ctx context.Context, bucketName, objectName string) (bool, error) {
	req := &clientRequest{
		BucketName: bucketName,
		ObjectName: objectName,
		Method:     HTTPHead,
	}

	resp, err := client.do(ctx, req)
	if err != nil {
		return false, err
	}

	if resp.StatusCode == http.StatusOK {
		return true, nil
	}

	return false, nil
}
// DoesObjectExistWithContext judge wether object exists with context controlling
DoesObjectExistWithContext judge wether object exists with context controlling
// DoesObjectExistWithContext judge wether object exists with context controlling
func (client *Client) DoesObjectExistWithContext(ctx context.Context, bucketName, objectName string) (bool, error) {
	req := &clientRequest{
		BucketName: bucketName,
		ObjectName: objectName,
		Method:     HTTPHead,
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return false, err
	}
	if resp.StatusCode == http.StatusOK {
		return true, nil
	}
	return false, nil
}
func ( client * Client ) DoesObjectExistWithContext ( ctx context . Context , bucketName , objectName string ) ( bool , error ) { req := & clientRequest { BucketName : bucketName , ObjectName : objectName , Method : HTTPHead , } resp , err := client . do ( ctx , req ) if err != nil { return false , err } if resp . StatusCode == http . StatusOK { return true , nil } return false , nil }
DoesObjectExistWithContext judge wether object exists with context controlling
DoesObjectExistWithContext judge wether object exists with context controlling