ignore ttf

This commit is contained in:
u80864958
2025-05-07 11:30:01 +02:00
parent 454554f8e0
commit 8eebdc0d38

View File

@ -27,6 +27,15 @@ func (c Cater) dir(dir string) (e entry, err error) {
var ent entry
if !file.IsDir() {
if strings.HasSuffix(path, "png") || // ignore images but hacky :)
strings.HasSuffix(path, "jpg") ||
strings.HasSuffix(path, "jpeg") ||
strings.HasSuffix(path, "ico") ||
strings.HasSuffix(path, "ttf") ||
strings.HasSuffix(path, "webp") {
continue
}
ent, err = c.file(path)
} else {
ent, err = c.dir(path)