Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/test_unasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
def list_files(startpath):
output = ""
for root, dirs, files in os.walk(startpath):
dirs.sort()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to read the docs to convince myself that this had any effect with the default topdown=True. Thanks, TIL.

files.sort()
level = root.replace(startpath, "").count(os.sep)
indent = " " * 4 * (level)
output += f"{indent}{os.path.basename(root)}/"
Expand Down
Loading