️ 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

View File

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