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

Method Remote

backend/crypt/crypt.go:1015–1023  ·  view source on GitHub ↗

Remote returns the remote path

()

Source from the content-addressed store, hash-verified

1013
1014// Remote returns the remote path
1015func (o *Object) Remote() string {
1016 remote := o.Object.Remote()
1017 decryptedName, err := o.f.cipher.DecryptFileName(remote)
1018 if err != nil {
1019 fs.Debugf(remote, "Undecryptable file name: %v", err)
1020 return remote
1021 }
1022 return decryptedName
1023}
1024
1025// Size returns the size of the file
1026func (o *Object) Size() int64 {

Callers 1

StringMethod · 0.95

Calls 3

DebugfFunction · 0.92
RemoteMethod · 0.65
DecryptFileNameMethod · 0.45

Tested by

no test coverage detected