fix(build-info): FileNotFoundException while generating BuildInfo

This commit is contained in:
Akash Yadav
2023-04-14 08:38:37 +05:30
parent 5984aff4c5
commit 8446212af9
2 changed files with 6 additions and 0 deletions
Binary file not shown.
+6
View File
@@ -56,6 +56,12 @@ fun File.replaceContents(
dest.delete()
}
dest.parentFile.let {
if (!it.exists()) {
it.mkdirs()
}
}
dest.bufferedWriter().use { writer ->
writer.write(contents.toString())
writer.flush()