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

Method NewObject

backend/crypt/crypt.go:486–492  ·  view source on GitHub ↗

NewObject finds the Object at remote.

(ctx context.Context, remote string)

Source from the content-addressed store, hash-verified

484
485// NewObject finds the Object at remote.
486func (f *Fs) NewObject(ctx context.Context, remote string) (fs.Object, error) {
487 o, err := f.Fs.NewObject(ctx, f.cipher.EncryptFileName(remote))
488 if err != nil {
489 return nil, err
490 }
491 return f.newObject(o), nil
492}
493
494type putFn func(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error)
495

Callers 1

PublicLinkMethod · 0.95

Calls 3

newObjectMethod · 0.95
NewObjectMethod · 0.65
EncryptFileNameMethod · 0.45

Tested by

no test coverage detected