if `Path` is now the preferred way over `File` in ...
# getting-started
p
if
Path
is now the preferred way over
File
in Java, why is there no
readBytes()
extension on
Path
?
r
They're experimental in 1.4.20 https://blog.jetbrains.com/kotlin/2020/11/kotlin-1-4-20-released/ (search for
java.nio.Path
)
you can still use
Files.readAllBytes(path)
in kotlin
p
thanks!
r
np
n
oh man, finally. I've been waiting for this forever. I just
path.toFile()
everywhere 😕