MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / DefaultConfigPath

Function DefaultConfigPath

pkg/csconfig/config.go:173–176  ·  view source on GitHub ↗

DefaultConfigPath returns the default path for a configuration resource "elem" parameters are path components relative to the default cfg directory.

(elem ...string)

Source from the content-addressed store, hash-verified

171// DefaultConfigPath returns the default path for a configuration resource
172// "elem" parameters are path components relative to the default cfg directory.
173func DefaultConfigPath(elem ...string) string {
174 elem = append([]string{defaultConfigDir}, elem...)
175 return filepath.Join(elem...)
176}
177
178// DefaultDataPath returns the default path for a data resource.
179// "elem" parameters are path components relative to the default data directory.

Callers 6

parseFlagsFunction · 0.92
NewCommandMethod · 0.92
newAddCmdMethod · 0.92
console.goFile · 0.85
TestLoadAPIServerFunction · 0.85
NewDefaultConfigFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestLoadAPIServerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…