MCPcopy Index your code
hub / github.com/rclone/rclone / Size

Method Size

backend/crypt/crypt.go:1026–1036  ·  view source on GitHub ↗

Size returns the size of the file

()

Source from the content-addressed store, hash-verified

1024
1025// Size returns the size of the file
1026func (o *Object) Size() int64 {
1027 size := o.Object.Size()
1028 if !o.f.opt.NoDataEncryption {
1029 var err error
1030 size, err = o.f.cipher.DecryptedSize(size)
1031 if err != nil {
1032 fs.Debugf(o, "Bad size for decrypt: %v", err)
1033 }
1034 }
1035 return size
1036}
1037
1038// Hash returns the selected checksum of the file
1039// If no checksum is available it returns ""

Callers 1

OpenMethod · 0.95

Calls 3

DebugfFunction · 0.92
DecryptedSizeMethod · 0.80
SizeMethod · 0.65

Tested by

no test coverage detected