use os.Mkdir
This commit is contained in:
parent
5ac4c26ded
commit
e30ef08c11
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
|
||||
|
@ -161,7 +162,7 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
|
|||
log.Info("patchset dir already exists", patchdir)
|
||||
shell.PathRun(me.userHomePwd.String(), []string{"rm", "-rf", dirname})
|
||||
}
|
||||
shell.Mkdir(patchdir)
|
||||
os.MkdirAll(patchdir, os.ModeDir)
|
||||
if !shell.Exists(patchdir) {
|
||||
log.Info("something went wrong making", patchdir)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue