or does it rely souly on Cinterop for that
# kotlin-native
s
or does it rely souly on Cinterop for that
d
Kotlin doesn't and won't provide any file api. So right now we have to use cinterop which KN has done for us by exposing platform api like
platform.posix.*
and
platform.windows.*
.
There's an upcoming
kotlinx.files
to help with multiplatform File IO.
s
is it compatible with JVM
d
If you talking about
platform.posix.*
, then no, it won't compile on Kotlin/JVM. You'll have to provide your own expect/actual.
o
#kotlinx-files if you’re curious