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

Function CreateFile

src/utils/utils.go:249–255  ·  view source on GitHub ↗

CreateFile creates a file with given path and content.

(path string, content string)

Source from the content-addressed store, hash-verified

247
248// CreateFile creates a file with given path and content.
249func CreateFile(path string, content string) error {
250 err := os.WriteFile(path, []byte(content), 0600)
251 if err != nil {
252 return err
253 }
254 return nil
255}
256
257// GetSpotifyVersion .
258func GetSpotifyVersion(prefsPath string) string {

Callers 1

StartFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected