MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / MakeDirEmpty

Function MakeDirEmpty

testutil/bulk.go:131–140  ·  view source on GitHub ↗
(dir []string)

Source from the content-addressed store, hash-verified

129}
130
131func MakeDirEmpty(dir []string) error {
132 for _, d := range dir {
133 _ = os.RemoveAll(d)
134 err := os.MkdirAll(d, 0755)
135 if err != nil {
136 return err
137 }
138 }
139 return nil
140}
141
142func freePort(port int) int {
143 // Linux reuses ports in FIFO order. So a port that we listen on and then

Callers 4

TestMainFunction · 0.92
TestMainFunction · 0.92
TestMainFunction · 0.92
runFunction · 0.92

Calls 1

RemoveAllMethod · 0.80

Tested by 3

TestMainFunction · 0.74
TestMainFunction · 0.74
TestMainFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…