aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authoraSemy <897017+aSemy@users.noreply.github.com>2023-02-21 12:37:37 +0100
committerGitHub <noreply@github.com>2023-02-21 12:37:37 +0100
commitecd2d337967244add2d52d7b7456a21d8e6ede54 (patch)
treeb9bf23beff844f13c3a56e424414b85c11fdeda9 /plugins
parentfa22175d91fd63b833c537990b79569fa3e2f97d (diff)
downloaddokka-ecd2d337967244add2d52d7b7456a21d8e6ede54.tar.gz
dokka-ecd2d337967244add2d52d7b7456a21d8e6ede54.tar.bz2
dokka-ecd2d337967244add2d52d7b7456a21d8e6ede54.zip
Initialize nested directories in `TemplateProcessor`
#2866
Diffstat (limited to 'plugins')
-rw-r--r--plugins/templating/src/main/kotlin/templates/TemplateProcessor.kt2
1 files changed, 1 insertions, 1 deletions
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 }