GetSubFolder checks if folder `name` is available in specified folder, else creates then returns the path.
(folder string, name string)
| 150 | // GetSubFolder checks if folder `name` is available in specified folder, |
| 151 | // else creates then returns the path. |
| 152 | func GetSubFolder(folder string, name string) string { |
| 153 | dir := filepath.Join(folder, name) |
| 154 | CheckExistAndCreate(dir) |
| 155 | |
| 156 | return dir |
| 157 | } |
| 158 | |
| 159 | var userAppsFolder = GetSubFolder(GetSpicetifyFolder(), "CustomApps") |
| 160 | var userExtensionsFolder = GetSubFolder(GetSpicetifyFolder(), "Extensions") |
no test coverage detected