DirExists returns true if the target exists and it's a directory
(target string)
| 218 | |
| 219 | // DirExists returns true if the target exists and it's a directory |
| 220 | func DirExists(target string) bool { |
| 221 | if info, err := os.Stat(target); err == nil && info.IsDir() { |
| 222 | return true |
| 223 | } |
| 224 | |
| 225 | return false |
| 226 | } |
| 227 | |
| 228 | // IsDir returns true if the target file system object is a directory |
| 229 | func IsDir(target string) bool { |
no test coverage detected