def METHOD_NAME(self):
    code = self.channels.get("code")
    if code is not None:
        dest = self.path.model / "code"
        if dest.is_dir():
            shutil.rmtree(dest)
        shutil.copytree(code, dest)