use os.Mkdir
This commit is contained in:
parent
5ac4c26ded
commit
e30ef08c11
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue