From c524c688095aedab0d5e8f9282830a8a5168662c Mon Sep 17 00:00:00 2001 From: fumiama Date: Thu, 27 Jan 2022 23:06:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20setutime=20mkdir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_setutime/setu_geter.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin_setutime/setu_geter.go b/plugin_setutime/setu_geter.go index 25132ce3..5f89e02c 100644 --- a/plugin_setutime/setu_geter.go +++ b/plugin_setutime/setu_geter.go @@ -4,6 +4,7 @@ package setutime import ( "errors" "fmt" + "os" "strconv" "strings" "sync" @@ -61,6 +62,7 @@ func init() { // 插件主体 max: 10, pool: map[string][]*pixiv.Illust{}, } + _ = os.MkdirAll("data/SetuTime", 0755) // 如果数据库不存在则下载 _, _ = fileutil.GetLazyData(cache.db.DBPath, false, false) err := cache.db.Open()