Skip to content

Commit

Permalink
update to check hidden file only for relative path (#11496)
Browse files Browse the repository at this point in the history
  • Loading branch information
leehuwuj authored Feb 29, 2024
1 parent 23f1491 commit 45f0db3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llama-index-core/llama_index/core/readers/file/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ def _add_files(self, input_dir: Path) -> List[Path]:
# in glob for backwards compatibility.
ref = Path(ref)
is_dir = self.fs.isdir(ref)
skip_because_hidden = self.exclude_hidden and self.is_hidden(ref)
skip_because_hidden = self.exclude_hidden and self.is_hidden(
ref.relative_to(input_dir.absolute())
)
skip_because_bad_ext = (
self.required_exts is not None and ref.suffix not in self.required_exts
)
Expand Down

0 comments on commit 45f0db3

Please sign in to comment.