open

suspend fun open(share: SmbShare, path: String, mode: String = "r", bufferSize: Int = DEFAULT_BUFFER_SIZE): SmbRandomAccessFile

Opens the file at path on share with the specified mode string ("r", "rw", "rws", "rwd") and returns an open SmbRandomAccessFile.


suspend fun open(share: SmbShare, path: String, mode: SmbRandomAccessMode, bufferSize: Int = DEFAULT_BUFFER_SIZE): SmbRandomAccessFile

Opens the file at path on share with the specified SmbRandomAccessMode and returns an open SmbRandomAccessFile.