FileKit icon indicating copy to clipboard operation
FileKit copied to clipboard

Kotlinx-IO support

Open GazimSoliev opened this issue 1 year ago • 3 comments
trafficstars

Hello, will this library support kotlinx-io or okio?

GazimSoliev avatar Sep 20 '24 20:09 GazimSoliev

I will look into this. First I need to figure out which to support or if it's worth the trouble of supporting both.

ghost avatar Sep 26 '24 20:09 ghost

I will look into this. First I need to figure out which to support or if it's worth the trouble of supporting both.

Of course, kotlinx-io, it's official library by Kotlin, this lib based on okio

GazimSoliev avatar Oct 02 '24 11:10 GazimSoliev

in Kotlinx-IO: Path is File in JVM, Source is InputStream in JVM and Sink is OutputStream in JVM, to get sink, to get source use FileSystem

GazimSoliev avatar Oct 02 '24 11:10 GazimSoliev

Hi @GazimSoliev!

We are working on a big update of FileKit that integrates kotlinx-io in PlatformFile and some new features. It's still in development, but it's usable now! If you are interested in trying out the new features, you can follow the steps indicated in this comment:

https://github.com/vinceglb/FileKit/issues/143#issuecomment-2425180833

If you have any questions or feedback, I'm really interested to hear from you!

vinceglb avatar Oct 20 '24 19:10 vinceglb

Now, FileKit version 0.10.0-beta01 has a built-in kotlinx-io integration. It enables you to read and write files like you want with kotlinx.io.Path, Sink and Source.

Read more here: https://filekit.mintlify.app/core/platform-file#converting-to-kotlinx-io

vinceglb avatar Mar 04 '25 14:03 vinceglb