MCPcopy
hub / github.com/syncthing/syncthing / updateLocalsFromPulling

Method updateLocalsFromPulling

lib/model/folder.go:1285–1291  ·  view source on GitHub ↗
(fs []protocol.FileInfo)

Source from the content-addressed store, hash-verified

1283}
1284
1285func (f *folder) updateLocalsFromPulling(fs []protocol.FileInfo) error {
1286 if err := f.updateLocals(fs); err != nil {
1287 return err
1288 }
1289 f.emitDiskChangeEvents(fs, events.RemoteChangeDetected)
1290 return nil
1291}
1292
1293func (f *folder) updateLocals(fs []protocol.FileInfo) error {
1294 var opts []db.UpdateOption

Callers 2

dbUpdaterRoutineMethod · 0.80
pullMethod · 0.80

Calls 2

updateLocalsMethod · 0.95
emitDiskChangeEventsMethod · 0.95

Tested by

no test coverage detected