Beispiel #1
0
 def is_valid_for(self, target_file: TargetPath):
     if "Event Log" in target_file.get_type() and \
             target_file.is_file() and \
             isinstance(target_file, TargetFile) and \
             target_file.get_extension() == ".evtx":
         return True
     return False
Beispiel #2
0
 def is_valid_for(self, target_file: TargetPath):
     if target_file.is_file():
         if isinstance(target_file, TargetFile):
             if target_file.get_extension() in [
                     ".cer", ".crt", ".cer", ".der", ".pem"
             ]:
                 return True
     return False
Beispiel #3
0
 def is_valid_for(self, target_file: TargetPath):
     if target_file.is_file():
         if "ignore_extensions" in self.get_params():
             if isinstance(target_file, TargetFile):
                 if target_file.get_extension() in self.get_params(
                 )["ignore_extensions"].split(","):
                     return False
         return True
     return False
Beispiel #4
0
 def _check_extensions(self, target_file: TargetPath):
     if target_file.is_file():
         if EXTENSIONS in self._params:
             if self._extensions is None:
                 self._extensions = self._read_file(
                     self._params[EXTENSIONS])
             if isinstance(target_file, TargetFile):
                 if target_file.get_extension() in self._extensions:
                     self._ignore()
Beispiel #5
0
 def is_valid_for(self, target_file: TargetPath):
     if target_file.is_file():
         if "PDF document" in target_file.get_type():
             return True
         elif "Composite Document" in target_file.get_type():
             return True
         elif "OpenDocument" in target_file.get_type():
             return True
         elif "Microsoft Word" in target_file.get_type():
             return True
         elif "Microsoft Excel" in target_file.get_type():
             return True
         elif "Microsoft PowerPoint" in target_file.get_type():
             return True
         if isinstance(target_file, TargetFile):
             if target_file.get_extension() in [
                     ".pages", ".numbers", ".keynote"
             ]:
                 return True
     return False
Beispiel #6
0
 def is_valid_for(self, target_file: TargetPath):
     if target_file.is_file() \
             and isinstance(target_file, TargetFile) \
             and target_file.get_extension() == ".pf":
         return True
     return False