diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2022-09-17 16:13:09 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2022-09-17 16:13:09 -0400 |
| commit | 8e789a73a07d0741e6c53068c517a38bb730c8ba (patch) | |
| tree | c762a67ac6073b91e5d6a9b70b306b5305ad6f4f /page/checkup.go | |
| parent | ccc26c3a0bb65ae2613e222c3ead7f6db377b483 (diff) | |
| download | go-website-8e789a73a07d0741e6c53068c517a38bb730c8ba.tar.gz go-website-8e789a73a07d0741e6c53068c517a38bb730c8ba.tar.xz | |
Remove fs / FileSystem library support since it is broken on Windows.
Diffstat (limited to 'page/checkup.go')
| -rw-r--r-- | page/checkup.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/page/checkup.go b/page/checkup.go index 6c3664f..b3b71fc 100644 --- a/page/checkup.go +++ b/page/checkup.go @@ -3,6 +3,7 @@ package page import ( "fmt" "io/fs" + "path/filepath" "reflect" "strings" ) @@ -14,8 +15,8 @@ func (p *Page) Checkup() (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 } |
