mirror of
https://github.com/rclone/rclone.git
synced 2025-01-13 20:38:12 +02:00
b2: Fix encrypted uploads #644
This was caused by accidentally letting b2 read the underlying object sha1.
This commit is contained in:
parent
31fe800d6a
commit
140a3d0aef
@ -343,6 +343,12 @@ func (o *ObjectInfo) Size() int64 {
|
||||
return o.f.cipher.EncryptedSize(o.ObjectInfo.Size())
|
||||
}
|
||||
|
||||
// Hash returns the selected checksum of the file
|
||||
// If no checksum is available it returns ""
|
||||
func (o *ObjectInfo) Hash(hash fs.HashType) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
// ListOpts wraps a listopts decrypting the directory listing and
|
||||
// replacing the Objects
|
||||
type ListOpts struct {
|
||||
|
Loading…
Reference in New Issue
Block a user