️ remove cachefile on start

This commit is contained in:
fumiama 2022-01-13 20:51:07 +08:00
parent d983c66597
commit 4b194627bb
3 changed files with 2 additions and 13 deletions

12
.gitignore vendored
View File

@ -1,15 +1,3 @@
data/SetuTime/cache
data/control
data/SetuTime/search
data/manager
data/acgimage
data/saucenao
data/fortune
data/hs
data/nsetu
data/nwife
data/sleep
data/score
plugins/*.so plugins/*.so
plugins/*.dll plugins/*.dll
.idea/ .idea/

2
data

@ -1 +1 @@
Subproject commit 0415ce82a070fed50a2333e5c16dd812e293680c Subproject commit cf3c143aa977994e543ae0893678a5f0628da02b

View File

@ -19,6 +19,7 @@ import (
const cachefile = "data/danbooru/" const cachefile = "data/danbooru/"
func init() { // 插件主体 func init() { // 插件主体
_ = os.RemoveAll(cachefile)
err := os.MkdirAll(cachefile, 0755) err := os.MkdirAll(cachefile, 0755)
if err != nil { if err != nil {
panic(err) panic(err)