MCPcopy
hub / github.com/spicetify/cli / GetSubFolder

Function GetSubFolder

src/utils/path-utils.go:152–157  ·  view source on GitHub ↗

GetSubFolder checks if folder `name` is available in specified folder, else creates then returns the path.

(folder string, name string)

Source from the content-addressed store, hash-verified

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

Callers 3

cmd.goFile · 0.92
GetStateFolderFunction · 0.85
path-utils.goFile · 0.85

Calls 1

CheckExistAndCreateFunction · 0.85

Tested by

no test coverage detected