|
|
@ -125,6 +125,7 @@ func runUpload(cmd *Command, args []string) bool { |
|
|
|
return false |
|
|
|
} |
|
|
|
filepath.Walk(*uploadDir, func(path string, info os.FileInfo, err error) error { |
|
|
|
if err == nil { |
|
|
|
if !info.IsDir() { |
|
|
|
results, e := submit([]string{path}) |
|
|
|
bytes, _ := json.Marshal(results) |
|
|
@ -133,6 +134,9 @@ func runUpload(cmd *Command, args []string) bool { |
|
|
|
return e |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
fmt.Println(err) |
|
|
|
} |
|
|
|
return err |
|
|
|
}) |
|
|
|
} else { |
|
|
|