(filename)
| 20 | else: |
| 21 | |
| 22 | def make_filename_text(filename): |
| 23 | path = os.path.abspath(os.path.join(root_path, filename)) |
| 24 | text = Text(filename, style="bold blue" if os.path.isdir(path) else "default") |
| 25 | text.stylize(f"link file://{path}") |
| 26 | text.highlight_regex(r"\..*?$", "bold") |
| 27 | return text |
| 28 | |
| 29 | filenames = [ |
| 30 | filename for filename in os.listdir(root_path) if not filename.startswith(".") |
no test coverage detected