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

Method CreateDir

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

Source from the content-addressed store, hash-verified

173 })
174}
175func (h *fileHandler) CreateDir(path string) error {
176 path = h.JoinPath(path)
177 if err := os.MkdirAll(path, 0755); err != nil {
178 return errors.Errorf("Create path failed to create path %s, got error: %v", path, err)
179 }
180 return nil
181}
182
183type fileSyncer struct {
184 fp *os.File

Callers

nothing calls this directly

Calls 2

JoinPathMethod · 0.95
ErrorfMethod · 0.45

Tested by

no test coverage detected