def unzip(self, overwrite: bool = False):
if self.zip_content and not overwrite:<EOL><INDENT>raise FileExistsError(str(self.temp_dir))<EOL><DEDENT>LOGGER.debug('<STR_LIT>')<EOL>try:<EOL><INDENT>with ZipFile(str(self.miz_path)) as zip_file:<EOL><INDENT>LOGGER.debug('<STR_LIT>')<EOL>self.zip_content = [f.filename for f in zip_file.infolist()]<EOL>self._extract_files_from_zip(zip_file)<EOL><DEDENT><DEDENT>except BadZipFile:<EOL><INDENT>raise BadZipFile(str(self.miz_path))<EOL><DEDENT>except:  <EOL><INDENT>LOGGER.exception('<STR_LIT>', self.miz_path)<EOL>raise<EOL><DEDENT>LOGGER.debug('<STR_LIT>')<EOL>for miz_item in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>if not Path(self.temp_dir.joinpath(miz_item)).exists():<EOL><INDENT>LOGGER.error('<STR_LIT>', miz_item)<EOL>raise FileNotFoundError(miz_item)<EOL><DEDENT><DEDENT>self._check_extracted_content()<EOL>LOGGER.debug('<STR_LIT>')<EOL>
Flattens a MIZ file into the temp dir

Args:
    overwrite: allow overwriting exiting files