aboutsummaryrefslogtreecommitdiff
path: root/src/filecounter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/filecounter.rs')
-rw-r--r--src/filecounter.rs2
1 files changed, 2 insertions, 0 deletions
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()) {