mirror of
https://github.com/rclone/rclone.git
synced 2025-06-20 03:37:50 +02:00
Fix Check on crypted file systems
This commit is contained in:
parent
ff41b0d435
commit
e825df6448
@ -474,7 +474,7 @@ func Overlapping(fdst, fsrc Fs) bool {
|
|||||||
//
|
//
|
||||||
// it returns true if differences were found
|
// it returns true if differences were found
|
||||||
// it also returns whether it couldn't be hashed
|
// it also returns whether it couldn't be hashed
|
||||||
func checkIdentical(dst, src Object) (bool, bool) {
|
func checkIdentical(dst, src Object) (differ bool, noHash bool) {
|
||||||
Stats.Checking(src.Remote())
|
Stats.Checking(src.Remote())
|
||||||
defer Stats.DoneChecking(src.Remote())
|
defer Stats.DoneChecking(src.Remote())
|
||||||
if src.Size() != dst.Size() {
|
if src.Size() != dst.Size() {
|
||||||
@ -489,7 +489,7 @@ func checkIdentical(dst, src Object) (bool, bool) {
|
|||||||
return true, false
|
return true, false
|
||||||
}
|
}
|
||||||
if hash == HashNone {
|
if hash == HashNone {
|
||||||
return true, true
|
return false, true
|
||||||
}
|
}
|
||||||
if !same {
|
if !same {
|
||||||
Stats.Error()
|
Stats.Error()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user