MCPcopy Create free account
hub / github.com/QuantumNous/new-api / Open

Method Open

common/embed-file-system.go:60–65  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

58}
59
60func (t *themeAwareFileSystem) Open(name string) (http.File, error) {
61 if GetTheme() == "classic" {
62 return t.classicFS.Open(name)
63 }
64 return t.defaultFS.Open(name)
65}
66
67func NewThemeAwareFS(defaultFS, classicFS static.ServeFileSystem) static.ServeFileSystem {
68 return &themeAwareFileSystem{defaultFS: defaultFS, classicFS: classicFS}

Callers

nothing calls this directly

Calls 2

GetThemeFunction · 0.85
OpenMethod · 0.45

Tested by

no test coverage detected