From ecd2d337967244add2d52d7b7456a21d8e6ede54 Mon Sep 17 00:00:00 2001 From: aSemy <897017+aSemy@users.noreply.github.com> Date: Tue, 21 Feb 2023 12:37:37 +0100 Subject: Initialize nested directories in `TemplateProcessor` #2866 --- plugins/templating/src/main/kotlin/templates/TemplateProcessor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/templating/src/main/kotlin/templates/TemplateProcessor.kt b/plugins/templating/src/main/kotlin/templates/TemplateProcessor.kt index 01c10067..95ac476f 100644 --- a/plugins/templating/src/main/kotlin/templates/TemplateProcessor.kt +++ b/plugins/templating/src/main/kotlin/templates/TemplateProcessor.kt @@ -53,7 +53,7 @@ class DefaultSubmoduleTemplateProcessor( coroutineScope { val source = this@visit if (source.isDirectory) { - target.mkdir() + target.mkdirs() val files = source.list().orEmpty() val accWithSelf = configuredModulesPaths[source.absolutePath] ?.takeIf { files.firstOrNull { !it.startsWith(".") } != null } -- cgit