New method

This commit is contained in:
Stefan Goppelt 2022-03-17 11:15:17 +01:00
parent e9cbf8bf28
commit 01b1bb4153
1 changed files with 5 additions and 0 deletions

View File

@ -45,3 +45,8 @@ func singleJoiningSlash(a, b string) string {
}
return a + b
}
// GetGlobalConfigurationFile returns OS specific file location
func GetGlobalConfigurationFile(appname string, file string) string {
return filepath.Join(GetGlobalConfigurationDirectory(appname), file)
}