summaryrefslogtreecommitdiffstats
path: root/src/aggregate.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-05-30 16:32:46 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2021-05-30 16:32:46 +0800
commitd381c6caed1fd404d7a11c1f581abdba749b7a20 (patch)
tree77e34387f3aefc2641cacbc067fdc256383361dc /src/aggregate.rs
parentffdb0c270f9c07a3518e2335ee77d7788bfc7793 (diff)
Only fetch metadata for files for a speedup
Diffstat (limited to 'src/aggregate.rs')
-rw-r--r--src/aggregate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aggregate.rs b/src/aggregate.rs
index 6a31445..3d3ac2d 100644
--- a/src/aggregate.rs
+++ b/src/aggregate.rs
@@ -84,7 +84,7 @@ pub fn aggregate(
num_errors += 1;
0
}
- None => unreachable!("must have populated client state for metadata"),
+ None => 0, // ignore directory
} as u128;
stats.largest_file_in_bytes = stats.largest_file_in_bytes.max(file_size);
stats.smallest_file_in_bytes = stats.smallest_file_in_bytes.min(file_size);