Skip to content

Commit

Permalink
Update packages/jupyter-ai/jupyter_ai/document_loaders/directory.py
Browse files Browse the repository at this point in the history
Co-authored-by: Piyush Jain <[email protected]>
  • Loading branch information
JasonWeill and 3coins authored Nov 2, 2023
1 parent 2f253ba commit 64571ff
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/jupyter-ai/jupyter_ai/document_loaders/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ def split(path, all: bool, splitter):
chunks = []

for dir, _, filenames in os.walk(path):
if all is False and dir in EXCLUDE_DIRS:
continue

# Exclude hidden directories
if all is False and dir[0] == ".":
if not all and (dir.startswith(".") or dir in EXCLUDE_DIRS):
continue

for filename in filenames:
Expand Down

0 comments on commit 64571ff

Please sign in to comment.