Skip to content

Commit

Permalink
Don't follow symlinks when calculating size interactively
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vks authored and Sebastian Thiel committed Jul 26, 2019
1 parent e01f157 commit 6b235de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactive/app/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 6b235de

Please sign in to comment.