(filePath string)
| 104 | } |
| 105 | |
| 106 | func createFile(filePath string) error { |
| 107 | if _, err := os.Stat(filePath); err == nil { |
| 108 | return nil |
| 109 | } |
| 110 | file, err := os.Create(filePath) |
| 111 | if err != nil { |
| 112 | fmt.Println(i18n.GetMsgWithMapForCmd("AppCreateFileErr", map[string]interface{}{"name": filePath, "err": err.Error()})) |
| 113 | return err |
| 114 | } |
| 115 | defer file.Close() |
| 116 | return nil |
| 117 | } |
| 118 | |
| 119 | func createFolder(dirPath string) error { |
| 120 | if _, err := os.Stat(dirPath); err == nil { |