pub fn find_similar_images(&mut self, stop_receiver: Option<&Receiver<()>>, progress_sender: Option<&futures::channel::mpsc::UnboundedSender<ProgressData>>) {
        self.directories.optimize_directories(true, &mut self.text_messages);
        self.use_reference_folders = !self.directories.reference_directories.is_empty();
        if !self.check_for_similar_images(stop_receiver, progress_sender) {
            self.stopped_search = true;
            return;
        }
        if !self.hash_images(stop_receiver, progress_sender) {
            self.stopped_search = true;
            return;
        }
        if !self.find_similar_hashes(stop_receiver, progress_sender) {
            self.stopped_search = true;
            return;
        }
        // if self.delete_folders {
        //     self.delete_empty_folders();
        // }
        self.debug_print();
    }
/// Public function used by CLI to search for empty folders
Public function used by CLI to search for empty folders
Public function used by CLI to search for empty folders
pub fn find_similar_images(&mut self, stop_receiver: Option<&Receiver<()>>, progress_sender: Option<&futures::channel::mpsc::UnboundedSender<ProgressData>>) {
        self.directories.optimize_directories(true, &mut self.text_messages);
        self.use_reference_folders = !self.directories.reference_directories.is_empty();
        if !self.check_for_similar_images(stop_receiver, progress_sender) {
            self.stopped_search = true;
            return;
        }
        if !self.hash_images(stop_receiver, progress_sender) {
            self.stopped_search = true;
            return;
        }
        if !self.find_similar_hashes(stop_receiver, progress_sender) {
            self.stopped_search = true;
            return;
        }
        // if self.delete_folders {
        //     self.delete_empty_folders();
        // }
        self.debug_print();
    }
pub fn find_similar_images ( & mut self , stop_receiver : Option < & Receiver < ( ) > > , progress_sender : Option < & futures :: channel :: mpsc :: UnboundedSender < ProgressData > > ) { self . directories . optimize_directories ( true , & mut self . text_messages ) ; self . use_reference_folders = ! self . directories . reference_directories . is_empty ( ) ; if ! self . check_for_similar_images ( stop_receiver , progress_sender ) { self . stopped_search = true ; return ; } if ! self . hash_images ( stop_receiver , progress_sender ) { self . stopped_search = true ; return ; } if ! self . find_similar_hashes ( stop_receiver , progress_sender ) { self . stopped_search = true ; return ; } // if self.delete_folders { //     self.delete_empty_folders(); // } self . debug_print ( ) ; }
Public function used by CLI to search for empty folders
Public function used by CLI to search for empty folders
&mut self
stop_receiver
Option<&Receiver<()>>
progress_sender
Option<&futures::channel::mpsc::UnboundedSender<ProgressData>>
&mut self
stop_receiver
Option<&Receiver<()>>
progress_sender
Option<&futures::channel::mpsc::UnboundedSender<ProgressData>>