Unzips a .zip file to folder path.
(path_to_zip_file, unzipped_folder_path)
| 110 | |
| 111 | |
| 112 | def unzip_file(path_to_zip_file, unzipped_folder_path): |
| 113 | """Unzips a .zip file to folder path.""" |
| 114 | logger.info(f"Unzipping file {path_to_zip_file} to {unzipped_folder_path}.") |
| 115 | enclosing_unzipped_path = pathlib.Path(unzipped_folder_path).parent |
| 116 | with zipfile.ZipFile(path_to_zip_file, "r") as zip_ref: |
| 117 | zip_ref.extractall(enclosing_unzipped_path) |
| 118 | |
| 119 | |
| 120 | def http_get(url, out_file, proxies=None): |
no outgoing calls
no test coverage detected