Skip to content

Commit

Permalink
Renames all arg in split
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonWeill committed Nov 3, 2023
1 parent b0c9377 commit bf8ff5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jupyter-ai/jupyter_ai/document_loaders/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ def flatten(*chunk_lists):
return list(itertools.chain(*chunk_lists))


def split(path, all: bool, splitter):
def split(path, all_files: bool, splitter):
chunks = []

for dir, _, filenames in os.walk(path):
if not all and (dir.startswith(".") or dir in EXCLUDE_DIRS):
if not all_files and (dir.startswith(".") or dir in EXCLUDE_DIRS):
continue

for filename in filenames:
if not all and filename.startswith("."):
if not all_files and filename.startswith("."):
continue

filepath = Path(os.path.join(dir, filename))
Expand Down

0 comments on commit bf8ff5d

Please sign in to comment.