I posted this question recently on the r/Kotlin subreddit (here). Afterwards I thought that I might get better answers here, since I really enjoy this community. I’d be glad if you could help me!
I’m trying to find the best way to interact with a filesystem and do basic operations on it (I/O). My requirements would be:
- (compatible with) Kotlin v1.4.32
- FS navigation (
- Basic I/O (most importantly txt file reading, maybe also writing, creating/deleting)
- Bonus Points if it can be done nonblockingly
What would not be needed:
- streaming possibilities
- random access
- control over platform-specific details
- basically anything that is more advanced than basic CRUD
I don’t think it’s a good idea to wait for
kotlinx.io *, so what could other alternatives be? The last option would be to implement it with
actual for every platform, but maybe there’s already a fitting library for this? Maybe korio? Does anyone have experience with it, is it up-to-date and well usable?
Thanks for your input!
* I get it that they don’t want to waste their resources on something that is low-priority, but I really don’t understand why such an essential thing as multiplatform I/O is considered “low priority”. Sad story.