Add docx and pptx

This commit is contained in:
Milan Nikolic
2024-11-02 20:16:23 +01:00
parent c0a077fcd1
commit 63013998c7
3 changed files with 4 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ func isArchive(f string) bool {
// isDocument checks if file is document.
func isDocument(f string) bool {
var types = []string{".pdf", ".xps", ".epub", ".mobi"}
var types = []string{".pdf", ".xps", ".epub", ".mobi", ".docx", ".pptx"}
for _, t := range types {
if strings.ToLower(filepath.Ext(f)) == t {
return true