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