napperley
08/13/2021, 3:36 AMmode & ~umask
). It isn't clear how to do this with Kotlin since it doesn't provide any bit manipulation operators. Below is the binding for the function:
@kotlinx.cinterop.internal.CCall public external fun sftp_open(session: libssh.sftp_session? /* = kotlinx.cinterop.CPointer<libssh.sftp_session_struct>? */, @kotlinx.cinterop.internal.CCall.CString file: kotlin.String?, accesstype: <http://kotlin.Int|kotlin.Int>, mode: libssh.mode_t /* = kotlin.UInt */): libssh.sftp_file? /* = kotlinx.cinterop.CPointer<libssh.sftp_file_struct>? */ { /* compiled code */ }
edrd
08/13/2021, 6:25 PMor
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/or.html).edrd
08/13/2021, 6:27 PM~
would be flip