def copy_assets(self, assets_path):
if not os.path.exists(assets_path):<EOL><INDENT>os.mkdir(assets_path)<EOL><DEDENT>extra_files = self._get_extra_files()<EOL>for ex_files in Formatter.get_extra_files_signal(self):<EOL><INDENT>extra_files.extend(ex_files)<EOL><DEDENT>for src, dest in extra_files:<EOL><INDENT>dest = os.path.join(assets_path, dest)<EOL>destdir = os.path.dirname(dest)<EOL>if not os.path.exists(destdir):<EOL><INDENT>os.makedirs(destdir)<EOL><DEDENT>if os.path.isfile(src):<EOL><INDENT>shutil.copy(src, dest)<EOL><DEDENT>elif os.path.isdir(src):<EOL><INDENT>recursive_overwrite(src, dest)<EOL><DEDENT><DEDENT>
Banana banana