Size returns the size of the file
()
| 1024 | |
| 1025 | // Size returns the size of the file |
| 1026 | func (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 "" |
no test coverage detected