1
0
mirror of https://github.com/beego/bee.git synced 2024-11-25 20:10:55 +00:00

minor fix

This commit is contained in:
ZhengYang 2014-08-22 16:04:07 +08:00
parent 8e1a1f5860
commit 8a2cb2ae1c

View File

@ -680,11 +680,7 @@ func (*PostgresDB) GetGoDataType(sqlType string) (goType string) {
// deleteAndRecreatePaths removes several directories completely // deleteAndRecreatePaths removes several directories completely
func createPaths(mode byte, paths *MvcPath) { func createPaths(mode byte, paths *MvcPath) {
if (mode & O_MODEL) == O_MODEL { if (mode & O_MODEL) == O_MODEL {
err := os.Mkdir(paths.ModelPath, 0777) os.Mkdir(paths.ModelPath, 0777)
if err != nil {
ColorLog("[ERRO]", err)
os.Exit(2)
}
} }
if (mode & O_CONTROLLER) == O_CONTROLLER { if (mode & O_CONTROLLER) == O_CONTROLLER {
os.Mkdir(paths.ControllerPath, 0777) os.Mkdir(paths.ControllerPath, 0777)