(zip: zipfile.ZipFile, path: str)
| 96 | |
| 97 | |
| 98 | def extractall(zip: zipfile.ZipFile, path: str) -> None: |
| 99 | for name in zip.namelist(): |
| 100 | member = zip.getinfo(name) |
| 101 | extracted_path = zip.extract(member, path) |
| 102 | attr = member.external_attr >> 16 |
| 103 | if attr != 0: |
| 104 | os.chmod(extracted_path, attr) |
| 105 | |
| 106 | |
| 107 | def ensure_driver_bundle(zip_name: str) -> None: |
no outgoing calls
no test coverage detected