walla / scala-ftp

FTP library for Scala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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()
  }
}

About

FTP library for Scala


Languages

Language:Scala 100.0%