pub fn process_directory( dir_path: &Path, config: &Config, regex: &Option<Regex>, ) -> Result<(), ApplicationError>