go(plot): use createPath instead of createFolder
All checks were successful
continuous-integration/drone/push Build is passing

..as it's more universal, should we start/allow passing more complex
paths than "./res-folder".. should e.g. "./res/subpath" be passed to the
former func, it would error out more easily, as the subpath would likely
be non-existent, akin to `mkdir <path>` vs `mkdir -p <path>`.
This commit is contained in:
surtur 2022-06-29 17:04:45 +02:00
parent c8ed8eb82b
commit 8f50a1ea51
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -59,7 +59,7 @@ func plotAllDims(allStats []stats.Stats, fPrefix, fExt string) {
log.Fatal(err) log.Fatal(err)
} }
if err := createFolder(picPath); err != nil { if err := createPath(picPath); err != nil {
log.Println(err) log.Println(err)
} }