From d46b63fad89dff63854c24bf1075033174eb955f Mon Sep 17 00:00:00 2001 From: Bob Date: Tue, 1 Oct 2019 22:44:17 +0100 Subject: [PATCH] Add detection of files which fail permission Old code caught some file permission denied but not all. --- src/utils/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/mod.rs b/src/utils/mod.rs index f9a5d5b..e33f08d 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -99,6 +99,8 @@ fn examine_dir( } None => *file_count_no_permission += 1, } + } else { + *file_count_no_permission += 1 } } }