✏️ 修正 本地 setu 插件

This commit is contained in:
fumiama 2021-11-29 22:31:02 +08:00
parent cdd1dc68da
commit c553248cf4

View File

@ -99,9 +99,8 @@ func scanclass(root fs.FS, path, clsn string) error {
for _, d := range ds { for _, d := range ds {
if !d.IsDir() { if !d.IsDir() {
relpath := path + "/" + d.Name() relpath := path + "/" + d.Name()
fullpath := setupath + "/" + relpath logrus.Debugln("[nsetu] read", relpath)
logrus.Debugln("[nsetu] read", fullpath) f, e := fs.ReadFile(root, relpath)
f, e := os.ReadFile(fullpath)
if e != nil { if e != nil {
return e return e
} }