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

Method JoinPath

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

Source from the content-addressed store, hash-verified

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)
165}
166func (h *fileHandler) Stream(path string) (io.ReadCloser, error) {
167 return os.Open(h.JoinPath(path))
168}

Callers 8

DirExistsMethod · 0.95
FileExistsMethod · 0.95
ReadMethod · 0.95
StreamMethod · 0.95
ListPathsMethod · 0.95
CreateDirMethod · 0.95
CreateFileMethod · 0.95
RenameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected