MCPcopy
hub / github.com/rclone/rclone / Remote

Method Remote

backend/http/http.go:647–652  ·  view source on GitHub ↗

Remote the name of the remote HTTP file, relative to the fs root

()

Source from the content-addressed store, hash-verified

645
646// Remote the name of the remote HTTP file, relative to the fs root
647func (o *Object) Remote() string {
648 if o.contentDispositionFilename != nil {
649 return *o.contentDispositionFilename
650 }
651 return o.remote
652}
653
654// Hash returns "" since HTTP (in Go or OpenSSH) doesn't support remote calculation of hashes
655func (o *Object) Hash(ctx context.Context, r hash.Type) (string, error) {

Callers 8

TestNewObjectFunction · 0.95
TestOpenFunction · 0.95
getHashMethod · 0.95
putHashesMethod · 0.95
RemoveMethod · 0.95
SetModTimeMethod · 0.95

Calls

no outgoing calls

Tested by 4

TestNewObjectFunction · 0.76
TestOpenFunction · 0.76