diff options
author | Thomas Hurst <tom@hur.st> | 2020-03-23 18:31:38 +0000 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-03-24 06:25:41 +0800 |
commit | cf902dbc2cc7b80b2657cf2429db708cc71b6253 (patch) | |
tree | 307449036662f7fd93adad75d1c02fc4b430ddea /src/aggregate.rs | |
parent | 45d1ef31181cd9b430d855a4fe23550ea97e685e (diff) |
Update to filesize v0.2
Diffstat (limited to 'src/aggregate.rs')
-rw-r--r-- | src/aggregate.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/aggregate.rs b/src/aggregate.rs index 414a9c0..1da708c 100644 --- a/src/aggregate.rs +++ b/src/aggregate.rs @@ -1,5 +1,6 @@ use crate::{InodeFilter, WalkOptions, WalkResult}; use failure::Error; +use filesize::PathExt; use std::borrow::Cow; use std::{fmt, io, path::Path}; use termion::color; @@ -36,7 +37,7 @@ pub fn aggregate( if options.apparent_size { m.len() } else { - filesize::file_real_size_fast(&entry.path(), m).unwrap_or_else( + entry.path().size_on_disk_fast(m).unwrap_or_else( |_| { num_errors += 1; 0 |