MCPcopy Index your code
hub / github.com/QuantumNous/new-api / Exists

Method Exists

common/embed-file-system.go:18–24  ·  view source on GitHub ↗
(prefix string, path string)

Source from the content-addressed store, hash-verified

16}
17
18func (e *embedFileSystem) Exists(prefix string, path string) bool {
19 _, err := e.Open(path)
20 if err != nil {
21 return false
22 }
23 return true
24}
25
26func (e *embedFileSystem) Open(name string) (http.File, error) {
27 if name == "/" {

Calls 1

OpenMethod · 0.95