MCPcopy
hub / github.com/wavetermdev/waveterm / Open

Method Open

pkg/schema/schema.go:44–54  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

42}
43
44func (d JsonDir) Open(name string) (http.File, error) {
45 // Try name as supplied
46 f, err := d.d.Open(name)
47 if os.IsNotExist(err) {
48 // Not found, try with .json
49 if f, err := d.d.Open(name + ".json"); err == nil {
50 return f, nil
51 }
52 }
53 return f, err
54}

Callers 15

remoteCopyFileInternalFunction · 0.80
CpWshToRemoteFunction · 0.80
resolveSshConfigPatternsFunction · 0.80
CpWshToRemoteFunction · 0.80
MakeDBFunction · 0.80
MakeOldDBFunction · 0.80
listDirectoryFunction · 0.80
determineMimeTypeFunction · 0.80
readTextFileCallbackFunction · 0.80
AtomicRenameCopyFunction · 0.80
ParseEnvironmentFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected