use os.Mkdir

This commit is contained in:
Jeff Carr 2024-12-18 17:58:02 -06:00
parent 5ac4c26ded
commit e30ef08c11
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package main package main
import ( import (
"os"
"path/filepath" "path/filepath"
"strconv" "strconv"
@ -161,7 +162,7 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
log.Info("patchset dir already exists", patchdir) log.Info("patchset dir already exists", patchdir)
shell.PathRun(me.userHomePwd.String(), []string{"rm", "-rf", dirname}) shell.PathRun(me.userHomePwd.String(), []string{"rm", "-rf", dirname})
} }
shell.Mkdir(patchdir) os.MkdirAll(patchdir, os.ModeDir)
if !shell.Exists(patchdir) { if !shell.Exists(patchdir) {
log.Info("something went wrong making", patchdir) log.Info("something went wrong making", patchdir)
return return