DefaultConfigSearchDirectories returns the default folder locations of the config
()
| 77 | |
| 78 | // DefaultConfigSearchDirectories returns the default folder locations of the config |
| 79 | func DefaultConfigSearchDirectories() []string { |
| 80 | dirs := make([]string, len(defaultUserConfigDirs)) |
| 81 | copy(dirs, defaultUserConfigDirs) |
| 82 | if runtime.GOOS != "windows" { |
| 83 | dirs = append(dirs, defaultNixConfigDirs...) |
| 84 | } |
| 85 | return dirs |
| 86 | } |
| 87 | |
| 88 | // FileExists checks to see if a file exist at the provided path. |
| 89 | func FileExists(path string) (bool, error) { |
no outgoing calls
no test coverage detected