MCPcopy
hub / github.com/syncthing/syncthing / isFolderNotFound

Function isFolderNotFound

lib/api/api.go:1966–1977  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

1964}
1965
1966func isFolderNotFound(err error) bool {
1967 for _, target := range []error{
1968 model.ErrFolderMissing,
1969 model.ErrFolderPaused,
1970 model.ErrFolderNotRunning,
1971 } {
1972 if errors.Is(err, target) {
1973 return true
1974 }
1975 }
1976 return false
1977}
1978
1979func httpError(w http.ResponseWriter, err error) {
1980 if errors.Is(err, upgrade.ErrUpgradeUnsupported) {

Callers 2

getDBCompletionMethod · 0.85
getDBFileMethod · 0.85

Calls 1

IsMethod · 0.45

Tested by

no test coverage detected