docstore/pkg/scan/helper.go
2019-05-01 22:25:23 +02:00

10 lines
141 B
Go

package scan
import (
"path/filepath"
"strings"
)
func isPDF(path string) bool {
return strings.ToLower(filepath.Ext(path)) == pdfExt
}