summaryrefslogtreecommitdiffstats
path: root/src/core.rs
diff options
context:
space:
mode:
authorPhilipp Mildenberger <philipp.mildenberger@student.uibk.ac.at>2019-06-16 20:48:35 +0200
committerAbin Simon <abinsimon10@gmail.com>2019-07-17 10:27:59 +0000
commit744efce1b8d85966a8740d6fe5416b9d459b89ca (patch)
tree2e7b3b7f7dd7787a7d4f0b2fc16fb42fb5ef9f59 /src/core.rs
parent3facd4484083003e73978a3de688529586c8021f (diff)
added a total-size flag, that calculates the total size of directories recursively
Diffstat (limited to 'src/core.rs')
-rw-r--r--src/core.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core.rs b/src/core.rs
index 8240ef8..74aaf89 100644
--- a/src/core.rs
+++ b/src/core.rs
@@ -116,6 +116,11 @@ impl Core {
}
};
}
+ if self.flags.total_size {
+ for meta in &mut meta_list.iter_mut() {
+ meta.calculate_total_size();
+ }
+ }
meta_list
}