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/file_sum | |
parent | c24285aab79e3155d26f9a39b0a7efca0c41fd11 (diff) |
display date and size on symlinks
Diffstat (limited to 'src/file_sum')
-rw-r--r-- | src/file_sum/sum_computation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_sum/sum_computation.rs b/src/file_sum/sum_computation.rs index 343781d..f3e3cbe 100644 --- a/src/file_sum/sum_computation.rs +++ b/src/file_sum/sum_computation.rs @@ -155,7 +155,7 @@ pub fn compute_dir_sum(path: &Path, dam: &Dam) -> Option<FileSum> { /// compute the sum for a regular file (not a folder) pub fn compute_file_sum(path: &Path) -> FileSum { - match fs::metadata(path) { + match fs::symlink_metadata(path) { Ok(md) => { let seconds = extract_seconds(&md); |