mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-11-22 16:32:36 +01:00
Clean up files in alphabetical order
This commit is contained in:
@@ -431,7 +431,7 @@ class OutputDirectory:
|
|||||||
await self._cleanup_file(path, pure)
|
await self._cleanup_file(path, pure)
|
||||||
|
|
||||||
async def _cleanup_dir(self, path: Path, pure: PurePath, delete_self: bool = True) -> None:
|
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
|
pure_child = pure / child.name
|
||||||
await self._cleanup(child, pure_child)
|
await self._cleanup(child, pure_child)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user