Skip to content

Commit

Permalink
upload file sorted by name if path is directory (UsergeTeam#69)
Browse files Browse the repository at this point in the history
* upload file sorted by name if path is directory

* Update upload.py
  • Loading branch information
sumitbot authored Jun 21, 2020
1 parent d515ba9 commit 6bf0b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userge/plugins/misc/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async def explorer(path: Path, chatid, flags, del_path):
except FloodWait as x:
time.sleep(x.x) # asyncio sleep ?
elif path.is_dir():
for i in path.iterdir():
for i in sorted(path.iterdir()):
await explorer(i, chatid, flags, del_path)


Expand Down

0 comments on commit 6bf0b7c

Please sign in to comment.