Skip to main content

FindConfigFiles

Finds configuration files within specified search paths. If no files are found in the provided search paths, or if the search paths are empty, it then searches default configuration locations.

def FindConfigFiles(
searchPaths: []string
) - > []string

Finds configuration files within specified search paths. If no configuration files are found in the provided search paths, or if the search paths are empty, it will then look in default locations. If a configuration file is found in the search paths, the search stops.

Parameters

NameTypeDescription
searchPaths[]stringA slice of strings representing file paths or patterns to search for configuration files. These patterns can be OS-dependent and will be globbed.

Returns

TypeDescription
[]stringA slice of strings, where each string is the path to a found configuration file.