MCPcopy
hub / github.com/syncthing/syncthing / updateLocalsFromScanning

Method updateLocalsFromScanning

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

Source from the content-addressed store, hash-verified

1275}
1276
1277func (f *folder) updateLocalsFromScanning(fs []protocol.FileInfo) error {
1278 if err := f.updateLocals(fs); err != nil {
1279 return err
1280 }
1281 f.emitDiskChangeEvents(fs, events.LocalChangeDetected)
1282 return nil
1283}
1284
1285func (f *folder) updateLocalsFromPulling(fs []protocol.FileInfo) error {
1286 if err := f.updateLocals(fs); err != nil {

Callers 15

TestRecvOnlyRevertNeedsFunction · 0.80
TestRecvOnlyUndoChangesFunction · 0.80
revertMethod · 0.80
newScanBatchMethod · 0.80
setupSendReceiveFolderFunction · 0.80
TestCopierCleanupFunction · 0.80

Calls 2

updateLocalsMethod · 0.95
emitDiskChangeEventsMethod · 0.95