mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 10:08:40 +00:00
typing fixes
This commit is contained in:
parent
7ba81f3a6a
commit
e73506f39f
2 changed files with 25 additions and 28 deletions
|
@ -13,7 +13,7 @@ from rich.tree import Tree
|
|||
def walk_directory(directory, tree):
|
||||
paths = sorted(
|
||||
pathlib.Path(directory).iterdir(),
|
||||
key=lambda path: (path.name.lower(), path.is_file()),
|
||||
key=lambda path: (path.is_file(), path.name.lower()),
|
||||
)
|
||||
for path in paths:
|
||||
if path.name.startswith("."):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue