diff --git a/czkawka_core/src/duplicate.rs b/czkawka_core/src/duplicate.rs index a0a7c4c..4b21a4f 100644 --- a/czkawka_core/src/duplicate.rs +++ b/czkawka_core/src/duplicate.rs @@ -106,7 +106,7 @@ impl DuplicateFinder { allowed_extensions: vec![], check_method: CheckingMethod::NONE, delete_method: DeleteMethod::None, - min_file_size: 0, + min_file_size: 1024, } } @@ -118,46 +118,6 @@ impl DuplicateFinder { &self.files_with_identical_hashes } - // pub fn get_string_from_files_hashes(&self) -> BTreeMap>> { - // let mut row_data: BTreeMap>> = Default::default(); - // for (size, vector) in &self.files_with_identical_hashes { - // let mut vector_of_vectors: Vec> = Vec::new(); - // for files in vector { - // let mut data_vector: Vec = Vec::new(); - // for file in files { - // let name = file.path.clone(); - // let index = name.rfind('/').unwrap(); - // - // data_vector.push(GtkRowData { - // name: name[index + 1..].to_string(), - // directory: name[..index].to_string(), - // modification_date: NaiveDateTime::from_timestamp(file.modified_date.duration_since(UNIX_EPOCH).expect("Invalid file date").as_secs() as i64, 0).to_string(), - // }); - // } - // vector_of_vectors.push(data_vector); - // } - // row_data.insert(*size, vector_of_vectors); - // } - // row_data - // } - // pub fn get_string_from_files_sizes(&self) -> BTreeMap> { - // let mut row_data: BTreeMap> = Default::default(); - // for (size, vector) in &self.files_with_identical_size { - // let mut data_vector: Vec = Vec::new(); - // for file in vector { - // let name = file.path.clone(); - // let index = name.rfind('/').unwrap(); - // - // data_vector.push(GtkRowData { - // name: name[index + 1..].to_string(), - // directory: name[..index].to_string(), - // modification_date: NaiveDateTime::from_timestamp(file.modified_date.duration_since(UNIX_EPOCH).expect("Invalid file date").as_secs() as i64, 0).to_string(), - // }); - // } - // row_data.insert(*size, data_vector); - // } - // row_data - // } pub fn get_text_messages(&self) -> &Messages { &self.text_messages }