fix: skip dirs

This commit is contained in:
Jan Bader
2025-01-28 00:02:27 +01:00
parent 30ea7a4ec4
commit 207cbc0239

View File

@ -92,7 +92,7 @@ func removeSuffix(suffix string) filepath.WalkFunc {
} }
func normalize(p string, f os.DirEntry, err error) error { func normalize(p string, f os.DirEntry, err error) error {
if f == nil { if f == nil || f.IsDir() {
return nil return nil
} }