go(plot): use createPath instead of createFolder
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
c8ed8eb82b
commit
8f50a1ea51
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user