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 }