aboutsummaryrefslogtreecommitdiff
path: root/src/filecounter.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-07-26 23:19:31 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-07-26 23:19:31 +0200
commit5dbb856a0c036d9e770400c02e8c719be1075527 (patch)
treec7ab72f022e59832f245c49f4798983751bf1a8c /src/filecounter.rs
parent6c7935ff4589adc92459185f3e9d1f47c76af1ed (diff)
remove filecounter
Diffstat (limited to 'src/filecounter.rs')
-rw-r--r--src/filecounter.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/filecounter.rs b/src/filecounter.rs
deleted file mode 100644
index 3532fa3..0000000
--- a/src/filecounter.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-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()) {
- counter += 1;
- }
-
- counter
-}