IndexUpdate is called for incremental updates to connected devices' indexes. Implements the protocol.Model interface.
(conn protocol.Connection, idxUp *protocol.IndexUpdate)
| 1157 | // IndexUpdate is called for incremental updates to connected devices' indexes. |
| 1158 | // Implements the protocol.Model interface. |
| 1159 | func (m *model) IndexUpdate(conn protocol.Connection, idxUp *protocol.IndexUpdate) error { |
| 1160 | return m.handleIndex(conn, idxUp.Folder, idxUp.Files, true, idxUp.PrevSequence, idxUp.LastSequence) |
| 1161 | } |
| 1162 | |
| 1163 | func (m *model) handleIndex(conn protocol.Connection, folder string, fs []protocol.FileInfo, update bool, prevSequence, lastSequence int64) error { |
| 1164 | op := "Index" |
nothing calls this directly
no test coverage detected