Count file stats ordered by file name

This commit is contained in:
Joscha 2023-08-13 22:19:14 +02:00
parent cf8ab2884f
commit 55ea5af779

View file

@ -30,7 +30,7 @@ fn count(run: &RunInProgress, path: &Path) -> somehow::Result<Counts> {
.unwrap();
let mut counts = Counts::default();
for entry in WalkDir::new(path) {
for entry in WalkDir::new(path).sort_by_file_name() {
let entry = entry?;
if !entry.file_type().is_file() {
continue;