(subdirs []string)
| 317 | } |
| 318 | |
| 319 | func (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. |
nothing calls this directly
no test coverage detected