mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Clean up files in alphabetical order
This commit is contained in:
parent
445dffc987
commit
74c7b39dc8
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue