18 lines
223 B
Go
18 lines
223 B
Go
package backend
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
func GetDefaultMusicPath() string {
|
|
|
|
homeDir, err := os.UserHomeDir()
|
|
if err != nil {
|
|
|
|
return "C:\\Users\\Public\\Music"
|
|
}
|
|
|
|
return filepath.Join(homeDir, "Music")
|
|
}
|