From 393f60786a2bc24a8b0170ac243297867b78768f Mon Sep 17 00:00:00 2001 From: Mmx <1624045573@qq.com> Date: Fri, 7 May 2021 13:45:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8DConfig.json=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E8=A2=AB=E8=A6=86=E7=9B=96=E7=9A=84=E8=87=B4=E5=91=BD?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Util/file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Util/file.go b/Util/file.go index 736c458..09b092c 100644 --- a/Util/file.go +++ b/Util/file.go @@ -12,8 +12,8 @@ type file struct{} var File file -func (*file) Exists(path string) bool { - _, err := os.Stat(path) +func (a *file) Exists(path string) bool { + _, err := os.Stat(a.GetRootPath() + path) if err != nil { if os.IsExist(err) { return true