This commit is contained in:
cdle
2021-09-26 20:12:06 +08:00
parent 2127e79e98
commit f38a752fa5
4 changed files with 15 additions and 4 deletions
-4
View File
@@ -2,7 +2,6 @@ package core
import (
"fmt"
"os"
"strconv"
"github.com/boltdb/bolt"
@@ -22,9 +21,6 @@ func NewBucket(name string) Bucket {
}
func initStore() {
if _, err := os.Stat(ExecPath + "/sillyGirl.cache"); err == nil {
os.Rename(ExecPath+"/sillyGirl.cache", "/etc/sillyGirl/sillyGirl.cache")
}
var err error
db, err = bolt.Open("/etc/sillyGirl/sillyGirl.cache", 0600, nil)
if err != nil {