Add office documents

This commit is contained in:
Milan Nikolic
2024-11-03 22:00:51 +01:00
parent 3bb40a87cd
commit f795c70c33

View File

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