From 55ea5af779e712a3f4fe3cd13c2d94b4b2fec50f Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 13 Aug 2023 22:19:14 +0200 Subject: [PATCH] Count file stats ordered by file name --- src/worker/run/internal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker/run/internal.rs b/src/worker/run/internal.rs index 0e89adc..9ec2c84 100644 --- a/src/worker/run/internal.rs +++ b/src/worker/run/internal.rs @@ -30,7 +30,7 @@ fn count(run: &RunInProgress, path: &Path) -> somehow::Result { .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;