MCPcopy
hub / github.com/syncthing/syncthing / getHealthErrorAndLoadIgnores

Method getHealthErrorAndLoadIgnores

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

Source from the content-addressed store, hash-verified

351}
352
353func (f *folder) getHealthErrorAndLoadIgnores() error {
354 if err := f.getHealthErrorWithoutIgnores(); err != nil {
355 return err
356 }
357 if f.Type != config.FolderTypeReceiveEncrypted {
358 if err := f.ignores.Load(".stignore"); err != nil && !fs.IsNotExist(err) {
359 return fmt.Errorf("loading ignores: %w", err)
360 }
361 }
362 return nil
363}
364
365func (f *folder) getHealthErrorWithoutIgnores() error {
366 // Check for folder errors, with the most serious and specific first and

Callers 3

ServeMethod · 0.95
pullMethod · 0.95
scanSubdirsMethod · 0.95

Calls 3

IsNotExistFunction · 0.92
LoadMethod · 0.45

Tested by

no test coverage detected