MCPcopy
hub / github.com/cloudflare/cloudflared / DefaultConfigSearchDirectories

Function DefaultConfigSearchDirectories

config/configuration.go:79–86  ·  view source on GitHub ↗

DefaultConfigSearchDirectories returns the default folder locations of the config

()

Source from the content-addressed store, hash-verified

77
78// DefaultConfigSearchDirectories returns the default folder locations of the config
79func 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.
89func FileExists(path string) (bool, error) {

Callers 7

FindOriginCertFunction · 0.92
getConfigPathFunction · 0.92
PathMethod · 0.92
checkForExistingCertFunction · 0.92
configuration.goFile · 0.85
FindDefaultConfigPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected