File vs Path in Kotlin
I think there is the consensus that, nowadays, Path should be used instead of File in Java code. But what about Kotlin? Kotlin has some nice extension functions on File which make it more usable than in plain Java. Sometimes, even, those extension functions are missing on Path. So I’m unsure what to use. Sure, one can always switch from on to the other via toFile() and toPath(). But, I guess, there should be some consistency for type declarations on properties, parameters etc. in a code...