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

Function downloadDataFiles

t/t.go:1275–1289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1273}
1274
1275func downloadDataFiles() {
1276 if !*downloadResources {
1277 fmt.Print("Skipping downloading of resources\n")
1278 return
1279 }
1280 for fname, link := range datafiles {
1281 cmd := exec.Command("wget", "-O", fname, link)
1282 cmd.Dir = *tmp
1283
1284 if out, err := cmd.CombinedOutput(); err != nil {
1285 fmt.Printf("Error %v\n", err)
1286 panic(fmt.Sprintf("error downloading a file: %s", string(out)))
1287 }
1288 }
1289}
1290
1291func downloadLDBCFiles(dir string) {
1292 if !*downloadResources {

Callers 1

runFunction · 0.85

Calls 1

PrintMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…