summaryrefslogtreecommitdiffstats
path: root/src/common.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-02 11:34:16 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-02 11:56:50 +0530
commit6d82a724b0452e417e20cbe8a02e3bed647e9674 (patch)
treed9584c8db2c57ce98db6d9afb39c1824dad0b7e9 /src/common.rs
parent495ccbda25cb27dc912c07fbdb29651b83f32c68 (diff)
basic frame to support new interactive mode
Diffstat (limited to 'src/common.rs')
-rw-r--r--src/common.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/common.rs b/src/common.rs
index 33fddf8..fb6ff03 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -96,21 +96,9 @@ impl WalkOptions {
}
}
-/// Statistics obtained during a filesystem walk
-#[derive(Default, Debug)]
-pub struct Statistics {
- /// The amount of files we have seen
- pub files_traversed: u64,
- /// The size of the smallest file encountered in bytes
- pub smallest_file_in_bytes: u64,
- /// The size of the largest file encountered in bytes
- pub largest_file_in_bytes: u64,
-}
-
/// Information we gather during a filesystem walk
#[derive(Default)]
pub struct WalkResult {
/// The amount of io::errors we encountered. Can happen when fetching meta-data, or when reading the directory contents.
pub num_errors: u64,
- pub stats: Statistics,
}