Skip to content

Commit 35319a2

Browse files
Update build_directory_md.py (TheAlgorithms#2066)
Propagate argument `top_dir` to good_file_paths. Previously this argument did not get passed to the helper function when calling print_directory_md.
1 parent d7cc778 commit 35319a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build_directory_md.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def print_path(old_path: str, new_path: str) -> str:
3131

3232
def print_directory_md(top_dir: str = ".") -> None:
3333
old_path = ""
34-
for filepath in sorted(good_file_paths()):
34+
for filepath in sorted(good_file_paths(top_dir)):
3535
filepath, filename = os.path.split(filepath)
3636
if filepath != old_path:
3737
old_path = print_path(old_path, filepath)

0 commit comments

Comments
 (0)