import shutil
template_files: list[str] = list(
glob.iglob(self.template_root_path + "**/*.*", recursive=True)
)
template_dot_files: list[str] = list(
glob.iglob(self.template_root_path + "**/.**", recursive=True)
)
files: list[str] = template_files + template_dot_files
for file_path in files:
target_file_path: str = file_path.replace(
self.template_root_path[:-1], self.output_path
)
if file_path.endswith(".j2"):
target_file_path: str = target_file_path.split(".j2")[0]