(input_path: Union[Path, str], output_path: Union[Path, str])
| 220 | |
| 221 | @staticmethod |
| 222 | def extract(input_path: Union[Path, str], output_path: Union[Path, str]) -> None: |
| 223 | os.makedirs(output_path, exist_ok=True) |
| 224 | with zipfile.ZipFile(input_path, "r") as zip_file: |
| 225 | zip_file.extractall(output_path, members=ZipExtractor.safemembers(zip_file.filelist, output_path)) |
| 226 | zip_file.close() |
| 227 | |
| 228 | |
| 229 | class XzExtractor(MagicNumberBaseExtractor): |
nothing calls this directly
no test coverage detected