(input_path: Union[Path, str], output_path: Union[Path, str])
| 126 | |
| 127 | @staticmethod |
| 128 | def extract(input_path: Union[Path, str], output_path: Union[Path, str]) -> None: |
| 129 | os.makedirs(output_path, exist_ok=True) |
| 130 | tar_file = tarfile.open(input_path) |
| 131 | tar_file.extractall(output_path, members=TarExtractor.safemembers(tar_file, output_path)) |
| 132 | tar_file.close() |
| 133 | |
| 134 | |
| 135 | class GzipExtractor(MagicNumberBaseExtractor): |
nothing calls this directly
no test coverage detected