https://kotlinlang.org logo
#datascience
Title
# datascience
h

holgerbrandl

12/03/2023, 2:52 PM
Hi there, are there any plans to support java.nio.Path in kotlin-dataframe. I'm thinking out the io methods. Generally kotlin has great support for the more modern
Path
so it would be nice for a consistent user-experience if kotlin-dataframe could support it as well.
z

zaleslaw

12/03/2023, 4:35 PM
No plans or tickets to support, as far as I know, but from other side the IO part is the hottest now, so, if you have some proposals or ideas, please share. Could give 1-2 examples when Path usage will be better?
a

altavir

12/03/2023, 4:58 PM
Path uses will be always better. Because any File could be converted to Path, but not vise versa. Also nio API is much more robust and flexible.
👍 1
1
A simple example, where Path is better is a path in a zip/jar file (for example a resource). Also paths could be used for virtual file systems like S3 or WebDav.
👍 4
h

holgerbrandl

12/04/2023, 10:40 AM
I also feel that path is the more modern API. So it would be nice to have built-in support in kdf
😅 1
3 Views