(filePath string)
| 67 | } |
| 68 | |
| 69 | func Exists(filePath string) bool { |
| 70 | if _, err := os.Stat(filePath); os.IsNotExist(err) { |
| 71 | return false |
| 72 | } |
| 73 | |
| 74 | return true |
| 75 | } |
| 76 | |
| 77 | func CreateIfNotExists(dir string, perm os.FileMode) error { |
| 78 | if Exists(dir) { |