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

Function ExtensionPath

src/cmd/path.go:59–64  ·  view source on GitHub ↗

ExtensionPath return path of extension file

(name string)

Source from the content-addressed store, hash-verified

57
58// ExtensionPath return path of extension file
59func ExtensionPath(name string) (string, error) {
60 if name == "root" {
61 return filepath.Join(utils.GetExecutableDir(), "Extensions"), nil
62 }
63 return utils.GetExtensionPath(name)
64}
65
66// ExtensionAllPath returns paths of all extension files
67func ExtensionAllPath() (string, error) {

Callers 1

mainFunction · 0.92

Calls 2

GetExecutableDirFunction · 0.92
GetExtensionPathFunction · 0.92

Tested by

no test coverage detected