MCPcopy
hub / github.com/syncthing/syncthing / SetIgnores

Method SetIgnores

lib/model/model.go:2227–2233  ·  view source on GitHub ↗
(folder string, content []string)

Source from the content-addressed store, hash-verified

2225}
2226
2227func (m *model) SetIgnores(folder string, content []string) error {
2228 cfg, ok := m.cfg.Folder(folder)
2229 if !ok {
2230 return fmt.Errorf("folder %s does not exist", cfg.Description())
2231 }
2232 return m.setIgnores(cfg, content)
2233}
2234
2235func (m *model) setIgnores(cfg config.FolderConfiguration, content []string) error {
2236 err := cfg.CheckPath()

Callers

nothing calls this directly

Calls 3

setIgnoresMethod · 0.95
FolderMethod · 0.65
DescriptionMethod · 0.45

Tested by

no test coverage detected