MCPcopy Index your code
hub / github.com/syncthing/syncthing / AllLocalFilesBySequence

Method AllLocalFilesBySequence

internal/db/sqlite/db_folderdb.go:203–212  ·  view source on GitHub ↗
(folder string, device protocol.DeviceID, startSeq int64, limit int)

Source from the content-addressed store, hash-verified

201}
202
203func (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
214func (s *DB) AllLocalFilesWithPrefix(folder string, device protocol.DeviceID, prefix string) (iter.Seq[protocol.FileInfo], func() error) {
215 fdb, err := s.getFolderDB(folder, false)

Callers

nothing calls this directly

Implementers 1

DBinternal/db/sqlite/db_open.go

Calls 3

getFolderDBMethod · 0.95
IsMethod · 0.45

Tested by

no test coverage detected