diff options
author | Canop <cano.petrole@gmail.com> | 2020-11-02 17:08:44 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-11-02 17:08:44 +0100 |
commit | cf6eab4a8ad7f1cd8881a9f4203bb8aaddb20e28 (patch) | |
tree | 341004a5d1c4d1bec2f2b77c5f0398e60a556b95 /src/tree | |
parent | c24285aab79e3155d26f9a39b0a7efca0c41fd11 (diff) |
display date and size on symlinks
Diffstat (limited to 'src/tree')
-rw-r--r-- | src/tree/tree.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tree/tree.rs b/src/tree/tree.rs index 00f371b..465e9cf 100644 --- a/src/tree/tree.rs +++ b/src/tree/tree.rs @@ -328,8 +328,11 @@ impl Tree { /// long computation which is needed for directories) pub fn fetch_regular_file_sums(&mut self) { for i in 1..self.lines.len() { - if self.lines[i].is_file() { - self.lines[i].sum = Some(FileSum::from_file(&self.lines[i].path)); + match self.lines[i].line_type { + TreeLineType::Dir | TreeLineType::Pruning => {} + _ => { + self.lines[i].sum = Some(FileSum::from_file(&self.lines[i].path)); + }, } } self.sort_siblings(); |