mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-24 15:52:38 +02:00
ignore hidden files
This commit is contained in:
parent
c34a255768
commit
aabea6fb12
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user