Function common::print_duplicates
source · pub fn print_duplicates<T, U, K>(
arc_vec_paths: &mut Arc<Mutex<HashMap<K, T>>>,
arc_capacities: &Arc<Mutex<HashMap<K, U>>>
) -> u64where
T: IntoIterator + ExactSize + Clone,
<T as IntoIterator>::Item: Debug,
U: AsF64,
K: Eq + Hash,Expand description
This free standing function helps to display all the duplicate file and their respective groups file sizes It filters for duplicate files from the provided arc_vec_paths HashMap, and figures out the file sizes for each group based on arc_capacities HashMap. Once the filtering and printing to screen is completed, it return the total number of duplicate records count