mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Clean up files in alphabetical order
This commit is contained in:
parent
445dffc987
commit
74c7b39dc8
@ -431,7 +431,7 @@ class OutputDirectory:
|
||||
await self._cleanup_file(path, pure)
|
||||
|
||||
async def _cleanup_dir(self, path: Path, pure: PurePath, delete_self: bool = True) -> None:
|
||||
for child in path.iterdir():
|
||||
for child in sorted(path.iterdir()):
|
||||
pure_child = pure / child.name
|
||||
await self._cleanup(child, pure_child)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user