fix IO error
This commit is contained in:
parent
822b0a8208
commit
efc565ae1b
|
|
@ -193,7 +193,6 @@ object InviteCodeCommands {
|
||||||
val result = codes.joinToString("\n")
|
val result = codes.joinToString("\n")
|
||||||
val output = File(getDataFolder(), "current.txt")
|
val output = File(getDataFolder(), "current.txt")
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
output.mkdirs()
|
|
||||||
output.createNewFile()
|
output.createNewFile()
|
||||||
output.writeText(result)
|
output.writeText(result)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue