Is there a file IO library for Kotlin Native that ...
# kotlin-native
j
Is there a file IO library for Kotlin Native that supports Linux and maybe macOS or Windows? I’m writing a CLI program and Kotlin Native may help with improving experience. Should I just stick to JVM for CLI?
r
j
It seems that the file system of Okio doesn’t support native.
n
There is KotlinX IO ( https://github.com/Kotlin/kotlinx-io ) however the file support isn't available yet.
j
Okio supports some native targets
n
Looks like KotlinX IO is no longer being actively maintained. Last commit was on 12 May 2020.
Linux support in Okio is limited. The library doesn't support the Linux ARM targets, which would be easy to rectify since the library already supports the linuxX64 target and uses a POSIX based implementation (is portable to multiple Linux targets).
j
Thanks I’ll try Okio.
j
PRs welcome for more targets
k
The underlaying kotlinx-datetime doesn't supports linuxArm targets. https://youtrack.jetbrains.com/issue/KT-43996