lib/model: Don't ignore stat failure in performFinish (#6766)

This commit is contained in:
Simon Frei 2020-06-19 23:47:29 +02:00 committed by GitHub
parent deaccc7f8d
commit 2716898cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1540,6 +1540,8 @@ func (f *sendReceiveFolder) performFinish(file, curFile protocol.FileInfo, hasCu
if err != nil {
return err
}
} else if !fs.IsNotExist(err) {
return err
}
// Replace the original content with the new one. If it didn't work,