From f8b35967f8169d2a8c340babb5b94bdbc4d4268c Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 28 Oct 2024 13:46:45 +1100 Subject: [PATCH] feat: pdf ingestion --- filesystem/filesystem.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go index e4c3759..27e028d 100644 --- a/filesystem/filesystem.go +++ b/filesystem/filesystem.go @@ -446,6 +446,9 @@ func printTree(node *treeNode, prefix string, isLast bool, output *strings.Build func isExcluded(path string, patterns []string) bool { for _, pattern := range patterns { if match, _ := doublestar.Match(pattern, path); match { + if strings.HasSuffix(path, ".pdf") { + utils.PrintColouredMessage("ℹ️", fmt.Sprintf("PDF file detected: %s. PDF to markdown conversion is supported, but the file was excluded", path), color.FgYellow) + } return true } }