PathExists checks if a path exists
(path string)
| 37 | |
| 38 | // PathExists checks if a path exists |
| 39 | func PathExists(path string) bool { |
| 40 | _, exists := os.Stat(path) |
| 41 | if os.IsNotExist(exists) { |
| 42 | return false |
| 43 | } |
| 44 | return true |
| 45 | } |
| 46 | |
| 47 | // UserHomeDir gets the user's home directory |
| 48 | func UserHomeDir() string { |
no outgoing calls
no test coverage detected