Skip to content

Commit 2c3d0c3

Browse files
committed
use characters we can show with terminalio in example
1 parent 3aa6b4c commit 2c3d0c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/pathlib_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ def print_directory_tree(path: adafruit_pathlib.Path, prefix: str = ""):
1212

1313
entries = sorted(path.iterdir(), key=lambda x: (not x.is_dir(), x.name.lower()))
1414
for index, entry in enumerate(entries):
15-
connector = "├── " if index < len(entries) - 1 else "└── "
15+
connector = "|-- " if index < len(entries) - 1 else "'-- "
1616
print(f"{prefix}{connector}{entry.name}")
1717
if entry.is_dir():
18-
extension = " " if index < len(entries) - 1 else " "
18+
extension = "| " if index < len(entries) - 1 else " "
1919
print_directory_tree(entry, prefix + extension)
2020

2121

0 commit comments

Comments
 (0)