mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Update build_directory_md.py (#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.
This commit is contained in:
parent
d7cc778092
commit
35319a2a2a
|
@ -31,7 +31,7 @@ def print_path(old_path: str, new_path: str) -> str:
|
|||
|
||||
def print_directory_md(top_dir: str = ".") -> None:
|
||||
old_path = ""
|
||||
for filepath in sorted(good_file_paths()):
|
||||
for filepath in sorted(good_file_paths(top_dir)):
|
||||
filepath, filename = os.path.split(filepath)
|
||||
if filepath != old_path:
|
||||
old_path = print_path(old_path, filepath)
|
||||
|
|
Loading…
Reference in New Issue
Block a user