typing fixes

This commit is contained in:
Will McGugan 2021-01-07 21:38:57 +00:00
parent 7ba81f3a6a
commit e73506f39f
2 changed files with 25 additions and 28 deletions

View file

@ -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("."):