diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-05-30 16:32:46 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-05-30 16:32:46 +0800 |
commit | d381c6caed1fd404d7a11c1f581abdba749b7a20 (patch) | |
tree | 77e34387f3aefc2641cacbc067fdc256383361dc /src/aggregate.rs | |
parent | ffdb0c270f9c07a3518e2335ee77d7788bfc7793 (diff) |
Only fetch metadata for files for a speedup
Diffstat (limited to 'src/aggregate.rs')
-rw-r--r-- | src/aggregate.rs | 2 |
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); |