mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Investigate TeamCity build failures.
This commit is contained in:
parent
443847c171
commit
5ea2fe30b0
1 changed files with 6 additions and 3 deletions
|
@ -265,9 +265,12 @@ class KFiles {
|
|||
}
|
||||
|
||||
fun saveFile(file: File, text: String) {
|
||||
file.absoluteFile.parentFile.mkdirs()
|
||||
if (file.absoluteFile.parentFile.mkdirs()) {
|
||||
file.writeText(text)
|
||||
kobaltLog(2, "Created $file")
|
||||
} else {
|
||||
warn("Couldn't create directory to save $file")
|
||||
}
|
||||
}
|
||||
|
||||
private fun isWindows() = System.getProperty("os.name").contains("Windows")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue