CheckExistAndDelete checks folder existence and deletes that folder if it does exist
(dir string)
| 29 | // CheckExistAndDelete checks folder existence |
| 30 | // and deletes that folder if it does exist |
| 31 | func CheckExistAndDelete(dir string) { |
| 32 | _, err := os.Stat(dir) |
| 33 | if err == nil { |
| 34 | os.RemoveAll(dir) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | // Unzip unzips zip |
| 39 | func Unzip(src, dest string) error { |
no outgoing calls
no test coverage detected