@staticmethod<EOL><INDENT>def recompose(src: Path, target_file: Path):<DEDENT>
mission_folder, assets_folder = NewMiz._get_subfolders(src)<EOL>base_info = ujson.loads(Path(mission_folder, '<STR_LIT>').read_text(encoding=ENCODING))<EOL>version = base_info['<STR_LIT>']<EOL>with Miz(target_file) as miz:<EOL><INDENT>LOGGER.info('<STR_LIT>', mission_folder)<EOL>miz.mission.d = NewMiz._recreate_dict_from_folder(mission_folder, version)<EOL>for item in assets_folder.iterdir():<EOL><INDENT>target = Path(miz.temp_dir, item.name).absolute()<EOL>if item.is_dir():<EOL><INDENT>if target.exists():<EOL><INDENT>shutil.rmtree(target)<EOL><DEDENT>shutil.copytree(item.absolute(), target)<EOL><DEDENT>elif item.is_file():<EOL><INDENT>shutil.copy(item.absolute(), target)<EOL><DEDENT><DEDENT>miz.zip(target_file, encode=False)<EOL><DEDENT>
Recompose a Miz from json object

Args:
    src: folder containing the json structure
    target_file: target Miz file