Constantly torn between `java.io.File` + Kotlin ex...
# announcements
p
Constantly torn between
java.io.File
+ Kotlin extensions and
java.nio.file.Path/Files
without. Wish I wouldn’t need to make a choice between better API usability and better file system implementation.
i
Which extensions on
Path
do you miss the most?
p
@ilya.gorbunov Hard to say.
java.nio.file.Path/Files
is just much less convenient to use than java.io.File + Kotlin extensions/APIs. Filed: https://youtrack.jetbrains.com/issue/KT-19192
Part of it is extension methods vs. static methods, but that’s not the whole story.
Another example is that Kotlin extension methods create missing target dirs automatically.
Also
readText
and
writeText
, and others.