Skip to content

Commit

Permalink
Make sure to count the hidden directories
Browse files Browse the repository at this point in the history
  • Loading branch information
AdminXVII committed Nov 26, 2019
1 parent bf28d42 commit 62ac9b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/mod.rs
Expand Up @@ -77,7 +77,10 @@ fn examine_dir(
data: &mut HashMap<String, u64>,
file_count_no_permission: &mut u64,
) {
for entry in WalkDir::new(top_dir).preload_metadata(true) {
for entry in WalkDir::new(top_dir)
.preload_metadata(true)
.skip_hidden(false)
{
if let Ok(e) = entry {
let maybe_size_and_inode = get_metadata(&e, apparent_size);

Expand Down

0 comments on commit 62ac9b6

Please sign in to comment.