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

Method Scan

lib/model/folder.go:319–324  ·  view source on GitHub ↗
(subdirs []string)

Source from the content-addressed store, hash-verified

317}
318
319func (f *folder) Scan(subdirs []string) error {
320 <-f.initialScanFinished
321 return f.doInSync(func(ctx context.Context) error {
322 return f.scanSubdirs(ctx, subdirs)
323 })
324}
325
326// doInSync allows to run functions synchronously in folder.serve from exported,
327// asynchronously called methods.

Callers

nothing calls this directly

Calls 2

doInSyncMethod · 0.95
scanSubdirsMethod · 0.95

Tested by

no test coverage detected