MCPcopy
hub / github.com/dgraph-io/dgraph / Read

Method Read

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

Source from the content-addressed store, hash-verified

159func (h *fileHandler) DirExists(path string) bool { return pathExist(h.JoinPath(path)) }
160func (h *fileHandler) FileExists(path string) bool { return pathExist(h.JoinPath(path)) }
161func (h *fileHandler) Read(path string) ([]byte, error) { return os.ReadFile(h.JoinPath(path)) }
162
163func (h *fileHandler) JoinPath(path string) string {
164 return filepath.Join(h.rootDir, h.prefix, path)

Callers

nothing calls this directly

Calls 1

JoinPathMethod · 0.95

Tested by

no test coverage detected