summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinzent Steinberg <Vinzent.Steinberg@gmail.com>2019-07-25 13:28:18 +0200
committerSebastian Thiel <sthiel@thoughtworks.com>2019-07-26 10:26:32 +0800
commit6b235de6f43af0f7573275c2b205741f326fd4cf (patch)
tree43a3555482b49ab35280fe646312c4c88f3b6674
parente01f157d708eb1cf5cdef0daff843eda98c5db76 (diff)
Don't follow symlinks when calculating size interactively
This should provide more accurate results. Unfortunately, this cannot be easily fixed for the non-interactive part of the app, because it uses `jwalk` which does not expose any options to deal with symlinks.
-rw-r--r--src/interactive/app/common.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interactive/app/common.rs b/src/interactive/app/common.rs
index 6338f25..5844194 100644
--- a/src/interactive/app/common.rs
+++ b/src/interactive/app/common.rs
@@ -39,7 +39,7 @@ pub fn sorted_entries(tree: &Tree, node_idx: TreeIndex, sorting: SortMode) -> Ve
.filter_map(|idx| {
tree.node_weight(idx).map(|w| {
let p = path_of(tree, idx);
- let pm = p.metadata();
+ let pm = p.symlink_metadata();
EntryDataBundle {
index: idx,
data: w.clone(),