()
| 351 | } |
| 352 | |
| 353 | func (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 | |
| 365 | func (f *folder) getHealthErrorWithoutIgnores() error { |
| 366 | // Check for folder errors, with the most serious and specific first and |
no test coverage detected