|
|
@@ -137,6 +137,7 @@ func (c *EngineClient) GenerateToPath(xmlfile string,dest_path string) {
|
|
|
ioutil.WriteFile(path, result.Data[i].Content, os.ModePerm)
|
|
|
}
|
|
|
} else if ft == "controllers" {
|
|
|
+ os.MkdirAll(filepath.Dir(path), os.ModePerm)
|
|
|
if strings.Index(path, "_gen.go") > 0 {
|
|
|
ioutil.WriteFile(path, result.Data[i].Content, os.ModePerm)
|
|
|
} else {
|