ignore hidden files

This commit is contained in:
Celogeek 2025-01-29 17:48:08 +01:00
parent c34a255768
commit aabea6fb12
Signed by: celogeek
GPG Key ID: 850295F3747870DD

View File

@ -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