File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,17 @@ jobs:
1313 from typing import Iterator
1414 URL_BASE = "https://github.com/TheAlgorithms/Ruby/blob/master"
1515 g_output = []
16-
16+
1717 def good_filepaths(top_dir: str = ".") -> Iterator[str]:
1818 for dirpath, dirnames, filenames in os.walk(top_dir):
1919 dirnames[:] = [d for d in dirnames if d[0] not in "._"]
2020 for filename in filenames:
2121 if os.path.splitext(filename)[1].lower() == ".rb":
2222 yield os.path.join(dirpath, filename).lstrip("./")
23-
23+
2424 def md_prefix(i):
2525 return f"{i * ' '}*" if i else "\n##"
26-
26+
2727 def print_path(old_path: str, new_path: str) -> str:
2828 global g_output
2929 old_parts = old_path.split(os.sep)
3232 if new_part:
3333 g_output.append(f"{md_prefix(i)} {new_part.replace('_', ' ').title()}")
3434 return new_path
35-
35+
3636 def build_directory_md(top_dir: str = ".") -> str:
3737 global g_output
3838 old_path = ""
4747 return "\n".join(g_output)
4848 with open("DIRECTORY.md", "w") as out_file:
4949 out_file.write(build_directory_md(".") + "\n")
50-
50+
5151 - name : Update DIRECTORY.md
5252 run : |
5353 cat DIRECTORY.md
You can’t perform that action at this time.
0 commit comments