MCPcopy
hub / github.com/rclone/rclone / headObject

Method headObject

backend/s3/s3.go:3973–3981  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

3971}
3972
3973func (o *Object) headObject(ctx context.Context) (resp *s3.HeadObjectOutput, err error) {
3974 bucket, bucketPath := o.split()
3975 req := s3.HeadObjectInput{
3976 Bucket: &bucket,
3977 Key: &bucketPath,
3978 VersionId: o.versionID,
3979 }
3980 return o.fs.headObject(ctx, &req)
3981}
3982
3983func (f *Fs) headObject(ctx context.Context, req *s3.HeadObjectInput) (resp *s3.HeadObjectOutput, err error) {
3984 if f.opt.RequesterPays {

Callers 3

createDirectoryMarkerMethod · 0.95
readMetaDataMethod · 0.95
UpdateMethod · 0.95

Calls 2

splitMethod · 0.95
headObjectMethod · 0.45

Tested by

no test coverage detected