x
This commit is contained in:
@@ -81,6 +81,9 @@ func init() {
|
|||||||
|
|
||||||
var GetDataHome = func() string {
|
var GetDataHome = func() string {
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
|
if _, err := os.Stat(`C:\ProgramData\sillyplus\`); err != nil {
|
||||||
|
os.MkdirAll(`C:\ProgramData\sillyplus\`, os.ModePerm)
|
||||||
|
}
|
||||||
return `C:\ProgramData\sillyplus\`
|
return `C:\ProgramData\sillyplus\`
|
||||||
} else {
|
} else {
|
||||||
if _, err := os.Stat(`/etc/sillyplus/`); err != nil {
|
if _, err := os.Stat(`/etc/sillyplus/`); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user