Skip to content

Commit

Permalink
feat: pdf ingestion
Browse files Browse the repository at this point in the history
  • Loading branch information
sammcj committed Oct 28, 2024
1 parent 1b4f38e commit f8b3596
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit f8b3596

Please sign in to comment.