CheckExistAndCreate checks folder existence and makes that folder, recursively, if it does not exist
(dir string)
| 20 | // CheckExistAndCreate checks folder existence |
| 21 | // and makes that folder, recursively, if it does not exist |
| 22 | func CheckExistAndCreate(dir string) { |
| 23 | _, err := os.Stat(dir) |
| 24 | if err != nil { |
| 25 | os.MkdirAll(dir, 0700) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // CheckExistAndDelete checks folder existence |
| 30 | // and deletes that folder if it does exist |
no outgoing calls
no test coverage detected