diff options
Diffstat (limited to 'page/index.go')
| -rw-r--r-- | page/index.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/page/index.go b/page/index.go index 00cab4b..75cbe87 100644 --- a/page/index.go +++ b/page/index.go @@ -2,6 +2,7 @@ package page import ( "io/fs" + "path/filepath" "strings" "sync" "time" @@ -40,8 +41,8 @@ func (p *Page) Index() (map[string]PageList, error) { out := make(map[string]PageList) - _ = fs.WalkDir(FileSystem, ".", - func(path string, info fs.DirEntry, err error) error { + _ = filepath.Walk(".", + func(path string, info fs.FileInfo, err error) error { if err != nil { return err } |
