https://kotlinlang.org logo
Title
j

jeggy

03/06/2023, 10:07 AM
I'm planning on created a kotlin script which will be compiled to "Native", but I will need a FTP library. Does anyone know of any FTP library that will work for this?
v

vbsteven

03/06/2023, 6:42 PM
I think libcurl supports FTP so if you are willing to go the
cinterop
route it might get the job done.
n

napperley

03/06/2023, 7:41 PM
Jógvan Olsen - Are you after FTP or SFTP? If it is SFTP then libssh (works with K/N) is the library to use: https://api.libssh.org/stable/index.html
j

jeggy

03/07/2023, 8:30 AM
It's SFTP. So I'm gonna try out libssh with kotlin 🙂
v

vbsteven

03/07/2023, 8:34 AM
Good luck, shouldn't be that hard if I look at this: https://gist.github.com/cy6erGn0m/134938242f28b27118039c038ea8c722
j

jeggy

03/07/2023, 8:42 AM
Thanks a bunch for this 🤩