From c553248cf414e97df254a134f7d4062041bd47e3 Mon Sep 17 00:00:00 2001 From: fumiama Date: Mon, 29 Nov 2021 22:31:02 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20=E4=BF=AE=E6=AD=A3=20?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=20setu=20=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_nativesetu/data.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin_nativesetu/data.go b/plugin_nativesetu/data.go index 4f217d82..716b6979 100644 --- a/plugin_nativesetu/data.go +++ b/plugin_nativesetu/data.go @@ -99,9 +99,8 @@ func scanclass(root fs.FS, path, clsn string) error { for _, d := range ds { if !d.IsDir() { relpath := path + "/" + d.Name() - fullpath := setupath + "/" + relpath - logrus.Debugln("[nsetu] read", fullpath) - f, e := os.ReadFile(fullpath) + logrus.Debugln("[nsetu] read", relpath) + f, e := fs.ReadFile(root, relpath) if e != nil { return e }