(folder string, device protocol.DeviceID)
| 190 | } |
| 191 | |
| 192 | func (s *DB) AllLocalFiles(folder string, device protocol.DeviceID) (iter.Seq[protocol.FileInfo], func() error) { |
| 193 | fdb, err := s.getFolderDB(folder, false) |
| 194 | if errors.Is(err, errNoSuchFolder) { |
| 195 | return func(yield func(protocol.FileInfo) bool) {}, func() error { return nil } |
| 196 | } |
| 197 | if err != nil { |
| 198 | return func(yield func(protocol.FileInfo) bool) {}, func() error { return err } |
| 199 | } |
| 200 | return fdb.AllLocalFiles(device) |
| 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) |
nothing calls this directly
no test coverage detected