(folder string, device protocol.DeviceID, startSeq int64, limit int)
| 201 | } |
| 202 | |
| 203 | func (s *DB) AllLocalFilesBySequence(folder string, device protocol.DeviceID, startSeq int64, limit int) (iter.Seq[protocol.FileInfo], func() error) { |
| 204 | fdb, err := s.getFolderDB(folder, false) |
| 205 | if errors.Is(err, errNoSuchFolder) { |
| 206 | return func(yield func(protocol.FileInfo) bool) {}, func() error { return nil } |
| 207 | } |
| 208 | if err != nil { |
| 209 | return func(yield func(protocol.FileInfo) bool) {}, func() error { return err } |
| 210 | } |
| 211 | return fdb.AllLocalFilesBySequence(device, startSeq, limit) |
| 212 | } |
| 213 | |
| 214 | func (s *DB) AllLocalFilesWithPrefix(folder string, device protocol.DeviceID, prefix string) (iter.Seq[protocol.FileInfo], func() error) { |
| 215 | fdb, err := s.getFolderDB(folder, false) |
nothing calls this directly
no test coverage detected