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

Method FileExists

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

Source from the content-addressed store, hash-verified

158
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 {

Callers

nothing calls this directly

Calls 2

JoinPathMethod · 0.95
pathExistFunction · 0.85

Tested by

no test coverage detected