Skip to content

Commit

Permalink
utils:functions - sort results of find_files
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Nov 8, 2023
1 parent 9403e8a commit cc3dcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acacore/utils/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def find_files(*root: Path, exclude: Optional[list[Path]] = None) -> Generator[P
elif f.is_file():
yield f
elif f.is_dir():
yield from find_files(*f.iterdir(), exclude=exclude)
yield from find_files(*sorted(f.iterdir()), exclude=exclude)


def file_checksum(path: Path) -> str:
Expand Down

0 comments on commit cc3dcec

Please sign in to comment.