Browse Source

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

Simon Frei 5 years ago
parent
commit
2716898cb9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/model/folder_sendrecv.go

+ 2 - 0
lib/model/folder_sendrecv.go

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