Browse Source

make .beego dir if don`t exist

pull/718/head
wangle 12 months ago
parent
commit
413f4ef129
  1. 6
      utils/utils.go

6
utils/utils.go

@ -481,6 +481,12 @@ func NoticeUpdateBee() {
return
}
beeHome := system.BeegoHome
if !IsExist(beeHome) {
if err := os.MkdirAll(beeHome, 0755); err != nil {
beeLogger.Log.Fatalf("Could not create the directory: %s", err)
return
}
}
fp := beeHome + "/.noticeUpdateBee"
timeNow := time.Now().Unix()
var timeOld int64

Loading…
Cancel
Save