mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix file saving.
This commit is contained in:
parent
62bef7a861
commit
a12aba3518
1 changed files with 1 additions and 2 deletions
|
@ -127,9 +127,8 @@ public class KFiles {
|
|||
|
||||
public fun saveFile(file: File, text: String) {
|
||||
file.absoluteFile.parentFile.mkdirs()
|
||||
file.delete()
|
||||
file.writeText(text)
|
||||
KobaltLogger.log(2, "Wrote ${file}")
|
||||
file.appendText(text)
|
||||
}
|
||||
|
||||
private fun isWindows() = System.getProperty("os.name").contains("Windows");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue