Fix: create multiple level path (#431)
This commit is contained in:
parent
aba4e341f7
commit
584886fb9e
5
main.go
5
main.go
@ -329,7 +329,10 @@ func main() {
|
|||||||
|
|
||||||
// Create output directory if not exist
|
// Create output directory if not exist
|
||||||
if _, err := os.Stat(*outputDir); os.IsNotExist(err) {
|
if _, err := os.Stat(*outputDir); os.IsNotExist(err) {
|
||||||
os.Mkdir(*outputDir, 0755)
|
if mkErr := os.MkdirAll(*outputDir, 0755); mkErr != nil {
|
||||||
|
fmt.Println("Failed: ", mkErr)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protoList := new(router.GeoSiteList)
|
protoList := new(router.GeoSiteList)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user