Ejemplo n.º 1
0
 def _preprocess(self, tmp_dir, required_states):
     # Uncompress a given tar file and return the uncompressed path.
     if EvidenceState.DECOMPRESSED in required_states:
         self.uncompressed_directory = archive.UncompressTarFile(
             self.local_path, tmp_dir)
         self.local_path = self.uncompressed_directory
         self.state[EvidenceState.DECOMPRESSED] = True
Ejemplo n.º 2
0
 def _preprocess(self, tmp_dir):
     # Uncompress a given tar file and return the uncompressed path.
     self.uncompressed_directory = archive.UncompressTarFile(
         self.local_path, tmp_dir)
     self.local_path = self.uncompressed_directory