How to get the current working directory in Kotlin
Sometimes it’s nice to know where you are. import java.nio.file.Paths fun main() { val cwd = Paths.get(“”).toAbsolutePath() println(cwd.toString()) }
Sometimes it’s nice to know where you are. import java.nio.file.Paths fun main() { val cwd = Paths.get(“”).toAbsolutePath() println(cwd.toString()) }