MCPcopy
hub / github.com/rclone/rclone / NewObject

Method NewObject

backend/s3/s3.go:2027–2029  ·  view source on GitHub ↗

NewObject finds the Object at remote. If it can't be found it returns the error fs.ErrorObjectNotFound.

(ctx context.Context, remote string)

Source from the content-addressed store, hash-verified

2025// NewObject finds the Object at remote. If it can't be found
2026// it returns the error fs.ErrorObjectNotFound.
2027func (f *Fs) NewObject(ctx context.Context, remote string) (fs.Object, error) {
2028 return f.newObjectWithInfo(ctx, remote, nil, nil)
2029}
2030
2031// Gets the bucket location
2032func (f *Fs) getBucketLocation(ctx context.Context, bucket string) (string, error) {

Callers 4

NewFsFunction · 0.95
CopyMethod · 0.95
PublicLinkMethod · 0.95
InternalTestVersionsMethod · 0.95

Calls 1

newObjectWithInfoMethod · 0.95

Tested by 1

InternalTestVersionsMethod · 0.76