MCPcopy
hub / github.com/syncthing/syncthing / Errors

Method Errors

lib/model/folder.go:1252–1263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1250}
1251
1252func (f *folder) Errors() []FileError {
1253 f.errorsMut.Lock()
1254 defer f.errorsMut.Unlock()
1255 scanLen := len(f.scanErrors)
1256 errors := make([]FileError, scanLen+len(f.pullErrors))
1257 copy(errors[:scanLen], f.scanErrors)
1258 copy(errors[scanLen:], f.pullErrors)
1259 slices.SortFunc(errors, func(a, b FileError) int {
1260 return strings.Compare(a.Path, b.Path)
1261 })
1262 return errors
1263}
1264
1265// ScheduleForceRescan marks the file such that it gets rehashed on next scan, and schedules a scan.
1266func (f *folder) ScheduleForceRescan(path string) {

Callers

nothing calls this directly

Calls 2

UnlockMethod · 0.80
CompareMethod · 0.45

Tested by

no test coverage detected