MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / Stream

Method Stream

worker/backup_handler.go:166–168  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

164 return filepath.Join(h.rootDir, h.prefix, path)
165}
166func (h *fileHandler) Stream(path string) (io.ReadCloser, error) {
167 return os.Open(h.JoinPath(path))
168}
169func (h *fileHandler) ListPaths(path string) []string {
170 path = h.JoinPath(path)
171 return x.WalkPathFunc(path, func(path string, isDis bool) bool {

Callers

nothing calls this directly

Calls 2

JoinPathMethod · 0.95
OpenMethod · 0.65

Tested by

no test coverage detected