Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 422 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 422 Bytes

Scala FTP

A small library for working with FTP in Scala

object E {

  private val client: FTP = FTPClient() // create a new FTP client instance

  def downloadFileExample() : Unit = {
    client.connectWithAuth("ftp.mozilla.org", "anonymous", "")

    client.cd("pub")

    if (client.filesInCurrentDirectory.contains("README")) {
      client.downloadFile("README")
    }

    client.disconnect()
  }
}