From aabea6fb122343168bfa6e4ecbb81965038ef171 Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Wed, 29 Jan 2025 17:48:08 +0100 Subject: [PATCH] ignore hidden files --- internal/pkg/epubimageprocessor/loader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/epubimageprocessor/loader.go b/internal/pkg/epubimageprocessor/loader.go index 2890916..a120385 100644 --- a/internal/pkg/epubimageprocessor/loader.go +++ b/internal/pkg/epubimageprocessor/loader.go @@ -47,7 +47,7 @@ func (e EPUBImageProcessor) isSupportedImage(path string) bool { switch strings.ToLower(filepath.Ext(path)) { case ".jpg", ".jpeg", ".png", ".webp", ".tiff": { - return true + return !strings.HasPrefix(filepath.Base(path), ".") } } return false