Skip to content

Commit

Permalink
✏️ 修正 本地 setu 插件
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Nov 29, 2021
1 parent c553248 commit 63a61f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin_nativesetu/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"io"
"io/fs"
"os"
"path/filepath"
"sync"

"github.com/corona10/goimagehash"
Expand Down Expand Up @@ -64,7 +63,7 @@ func scanall(path string) error {
root := os.DirFS(path)
_ = db.Close()
_ = os.Remove(dbfile)
return filepath.WalkDir(path, func(path string, d fs.DirEntry, err error) error {
return fs.WalkDir(root, ".", func(path string, d fs.DirEntry, err error) error {
if err != nil {
return err
}
Expand Down

0 comments on commit 63a61f2

Please sign in to comment.