(folder string, device protocol.DeviceID, fs []protocol.FileInfo, opts ...db.UpdateOption)
| 93 | } |
| 94 | |
| 95 | func (s *DB) Update(folder string, device protocol.DeviceID, fs []protocol.FileInfo, opts ...db.UpdateOption) error { |
| 96 | fdb, err := s.getFolderDB(folder, true) |
| 97 | if err != nil { |
| 98 | return err |
| 99 | } |
| 100 | var options db.UpdateOptions |
| 101 | for _, o := range opts { |
| 102 | o(&options) |
| 103 | } |
| 104 | return fdb.Update(device, fs, options) |
| 105 | } |
| 106 | |
| 107 | func (s *DB) DropBlockIndex(folder string) error { |
| 108 | fdb, err := s.getFolderDB(folder, false) |
nothing calls this directly
no test coverage detected