Package-level declarations

Functions

Link copied to clipboard
fun connect(configuration: FtpConfiguration): Flow<FTPClient>

Establishes a connection to an FTP server using the specified configuration.

fun connect(host: String, port: Int = 21, configuration: FtpConfiguration.() -> Unit = { }): Flow<FTPClient>

Establishes a connection to an FTP server specified by host and port.

Link copied to clipboard
fun FTPClient.download(remotePath: String, dispatcher: CoroutineDispatcher = Dispatchers.IO): Flow<ByteArray>

Downloads a file from the remote FTP server specified by remotePath.

Link copied to clipboard
fun FTPClient.upload(remotePath: String, content: Flow<ByteArray>, dispatcher: CoroutineDispatcher = Dispatchers.IO): Flow<Unit>

Uploads a file to the remote FTP server specified by remotePath using the specified content.