MCPcopy
hub / github.com/gotify/server / Open

Method Open

router/router.go:255–261  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

253}
254
255func (fs *onlyImageFS) Open(name string) (http.File, error) {
256 ext := filepath.Ext(name)
257 if !api.ValidApplicationImageExt(ext) {
258 return nil, fmt.Errorf("invalid file")
259 }
260 return fs.inner.Open(name)
261}

Callers 7

loadPluginsMethod · 0.80
SetupSuiteMethod · 0.80
NewFunction · 0.80
BeforeTestMethod · 0.80
mustOpenFunction · 0.80

Calls 2

ValidApplicationImageExtFunction · 0.92
ErrorfMethod · 0.80

Tested by 4

SetupSuiteMethod · 0.64
BeforeTestMethod · 0.64
mustOpenFunction · 0.64