ignore ttf
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user