diff options
Diffstat (limited to 'MAT/archive.py')
| -rw-r--r-- | MAT/archive.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/MAT/archive.py b/MAT/archive.py index 3c6a139..62f4ca7 100644 --- a/MAT/archive.py +++ b/MAT/archive.py | |||
| @@ -39,7 +39,7 @@ class GenericArchiveStripper(parser.GenericParser): | |||
| 39 | mat.secure_remove(path_file) | 39 | mat.secure_remove(path_file) |
| 40 | shutil.rmtree(self.tempdir) | 40 | shutil.rmtree(self.tempdir) |
| 41 | 41 | ||
| 42 | def is_clean(self, list_unsupported): | 42 | def is_clean(self, list_unsupported=False): |
| 43 | ''' Virtual method to check for harmul metadata | 43 | ''' Virtual method to check for harmul metadata |
| 44 | ''' | 44 | ''' |
| 45 | raise NotImplementedError | 45 | raise NotImplementedError |
| @@ -312,6 +312,14 @@ class TarStripper(GenericArchiveStripper): | |||
| 312 | return metadata | 312 | return metadata |
| 313 | 313 | ||
| 314 | 314 | ||
| 315 | class TerminalZipStripper(ZipStripper): | ||
| 316 | ''' Represent a terminal level archive. | ||
| 317 | This type of archive can not contain nested archives. | ||
| 318 | It is used for formats like docx, which are basically | ||
| 319 | ziped xml. | ||
| 320 | ''' | ||
| 321 | |||
| 322 | |||
| 315 | class GzipStripper(TarStripper): | 323 | class GzipStripper(TarStripper): |
| 316 | ''' Represent a tar.gz archive | 324 | ''' Represent a tar.gz archive |
| 317 | ''' | 325 | ''' |
