b2: Fix encrypted uploads #644

This was caused by accidentally letting b2 read the underlying object sha1.
This commit is contained in:
Nick Craig-Wood 2016-08-25 21:26:55 +01:00
parent 31fe800d6a
commit 140a3d0aef
1 changed files with 6 additions and 0 deletions

View File

@ -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 {