mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 15:56:48 +08:00
fix(build-info): FileNotFoundException while generating BuildInfo
This commit is contained in:
Binary file not shown.
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user