From 9b4aa4e9643b0a5b4a554e455eac269a2472b590 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 6 Jul 2023 14:20:14 +0200 Subject: add some documentation to structs --- src/filecounter.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/filecounter.rs') diff --git a/src/filecounter.rs b/src/filecounter.rs index 1ed58e3..3532fa3 100644 --- a/src/filecounter.rs +++ b/src/filecounter.rs @@ -1,5 +1,7 @@ use walkdir::*; +/// Function to count the number of entries in a directory. +/// Is needed to get a progress. pub fn filecount(path : &str) -> u64 { let mut counter : u64 = 0; for _ in WalkDir::new(path).into_iter().filter_map(|e| e.ok()) { -- cgit v1.2.3-70-g09d2