Do not process a file that has been marked as dangerous.

pull/2/head
Raphaël Vinot 2015-05-26 18:43:48 +02:00
parent dcc3c7eda8
commit 420e87cbba
1 changed files with 4 additions and 1 deletions

View File

@ -334,7 +334,10 @@ class KittenGroomer(KittenGroomerBase):
self.log_name.info('Processing {} ({}/{})', srcpath.replace(src_dir + '/', ''),
self.cur_file.main_type, self.cur_file.sub_type)
if self.cur_file.log_details.get('dangerous') is None:
self.mime_processing_options.get(self.cur_file.main_type, self.unknown)()
else:
self._safe_copy()
if not self.cur_file.is_recursive:
self._print_log()