forked from TrueCloudLab/rclone
sftp: Ensure file hash checking is really disabled
This commit is contained in:
parent
c5ac96e9e7
commit
dedc7d885c
1 changed files with 4 additions and 0 deletions
|
@ -769,6 +769,10 @@ func (o *Object) Hash(r hash.Type) (string, error) {
|
|||
return "", hash.ErrUnsupported
|
||||
}
|
||||
|
||||
if o.fs.opt.DisableHashCheck {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
c, err := o.fs.getSftpConnection()
|
||||
if err != nil {
|
||||
return "", errors.Wrap(err, "Hash get SFTP connection")
|
||||
|
|
Loading…
Reference in a new issue