MCPcopy Create free account
hub / github.com/CloudyKit/jet / Exists

Method Exists

loaders/httpfs/loader.go:29–35  ·  view source on GitHub ↗

Exists implements Loader.Exists() on top of an http.FileSystem by trying to open the file.

(name string)

Source from the content-addressed store, hash-verified

27
28// Exists implements Loader.Exists() on top of an http.FileSystem by trying to open the file.
29func (l *httpFileSystemLoader) Exists(name string) bool {
30 if f, err := l.Open(name); err == nil {
31 f.Close()
32 return true
33 }
34 return false
35}

Callers

nothing calls this directly

Calls 1

OpenMethod · 0.95

Tested by

no test coverage detected