diff --git a/userge/plugins/misc/upload.py b/userge/plugins/misc/upload.py index b3333fea3..ef849ecdf 100644 --- a/userge/plugins/misc/upload.py +++ b/userge/plugins/misc/upload.py @@ -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)