summaryrefslogtreecommitdiffstats
path: root/src/file_sum/sum_computation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_sum/sum_computation.rs')
-rw-r--r--src/file_sum/sum_computation.rs2
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);