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

Method CreateFile

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

Source from the content-addressed store, hash-verified

194}
195
196func (h *fileHandler) CreateFile(path string) (io.WriteCloser, error) {
197 path = h.JoinPath(path)
198 fp, err := os.Create(path)
199 return &fileSyncer{fp}, errors.Wrapf(err, "File handler failed to create file %s", path)
200}
201
202func (h *fileHandler) Rename(src, dst string) error {
203 src = h.JoinPath(src)

Callers

nothing calls this directly

Calls 2

JoinPathMethod · 0.95
CreateMethod · 0.65

Tested by

no test coverage detected