CreateFile creates a file with given path and content.
(path string, content string)
| 247 | |
| 248 | // CreateFile creates a file with given path and content. |
| 249 | func 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 . |
| 258 | func GetSpotifyVersion(prefsPath string) string { |