← ZIO Ftp docs

zio.ftp

package zio.ftp

Members list

Type members

Classlikes

final case class ConnectionError(message: String, cause: Throwable) extends IOException

Attributes

Companion
object
Source
errors.scala
Supertypes
trait Product
trait Equals
class IOException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
errors.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class FileTransferIncompleteError(message: String) extends IOException

Attributes

Source
errors.scala
Supertypes
trait Product
trait Equals
class IOException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object Ftp

Attributes

Source
package.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Ftp.type
trait FtpAccessors[+A]

Attributes

Source
FtpAccessors.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class SecureFtp
class UnsecureFtp
sealed trait FtpCredentials

Attributes

Source
FtpSettings.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class FtpResource(path: String, size: Long, lastModified: Instant, permissions: Set[PosixFilePermission], isDirectory: Option[Boolean])

Represent a file / directory / symbolic link on a ftp server

Represent a file / directory / symbolic link on a ftp server

Value parameters

isDirectory

boolean flag: 'true' if it is a directory, 'false' if it is a file. In some situation we cannot determine the type of the resource

lastModified

last modified date as a timestamp

path

location on the resource on the ftp server

permissions

linux file system permissions

size

size in bytes

Attributes

Companion
object
Source
FtpResource.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object FtpResource

Attributes

Companion
class
Source
FtpResource.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class InvalidPathError(message: String) extends IOException

Attributes

Source
errors.scala
Supertypes
trait Product
trait Equals
class IOException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final case class KeepaliveSettings(idle: Option[Int], interval: Option[Int], count: Option[Int])

see the documentation for jdk.net.ExtendedSocketOptions for details about these settings

see the documentation for jdk.net.ExtendedSocketOptions for details about these settings

Attributes

Companion
object
Source
KeepaliveSettings.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
KeepaliveSettings.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class KeyCredentials(username: String, identity: SftpIdentity) extends FtpCredentials

Key file credentials used during ftp authentication

Key file credentials used during ftp authentication

Value parameters

identity

key file certificate used authentication

username

identifier of the user in plain text

Attributes

Source
FtpSettings.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class KeyFileSftpIdentity(privateKey: Path, passphrase: Option[String]) extends SftpIdentity

SFTP identity for authenticating using private/public key file

SFTP identity for authenticating using private/public key file

Value parameters

passphrase

password to use to decrypt private key file

privateKey

private key file to use when connecting

Attributes

Companion
object
Source
FtpSettings.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait SftpIdentity
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
FtpSettings.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class PasswordCredentials(username: String, password: String) extends FtpCredentials

Basic credentials used during ftp authentication

Basic credentials used during ftp authentication

Value parameters

password

secure secret of the user in plain text

username

identifier of the user in plain text

Attributes

Source
FtpSettings.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed abstract class ProtectionLevel(val s: String)

Attributes

Companion
object
Source
FtpSettings.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Clear
object Confidential
object Private
object Safe

Attributes

Companion
class
Source
FtpSettings.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class RawKeySftpIdentity(privateKey: String, passphrase: Option[String], publicKey: Option[String]) extends SftpIdentity

SFTP identity for authenticating using private/public key value

SFTP identity for authenticating using private/public key value

Value parameters

passphrase

password to use to decrypt private key

privateKey

private key value to use when connecting

publicKey

public key value to use when connecting

Attributes

Companion
object
Source
FtpSettings.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait SftpIdentity
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
FtpSettings.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object SFtp

Attributes

Source
package.scala
Supertypes
class Object
trait Matchable
class Any
Self type
SFtp.type
sealed abstract class SecureFtp(unsafeClient: Client) extends FtpAccessors[Client]

Secure Ftp client wrapper

Secure Ftp client wrapper

All ftp methods exposed are lifted into ZIO or ZStream. The underlying java client only provides blocking methods, so each call runs with ZIO.attemptBlockingIO, on ZIO's blocking thread pool, and needs no environment beyond Any.

Attributes

Companion
object
Source
SecureFtp.scala
Supertypes
class Object
trait Matchable
class Any
object SecureFtp

Attributes

Companion
class
Source
SecureFtp.scala
Supertypes
class Object
trait Matchable
class Any
Self type
SecureFtp.type
final case class SecureFtpSettings(host: String, port: Int, credentials: FtpCredentials, strictHostKeyChecking: Boolean, knownHosts: Option[String], proxy: Option[Proxy], sshConfig: Config)

Settings to connect to a secure Ftp server (Ftp over ssh)

Settings to connect to a secure Ftp server (Ftp over ssh)

Value parameters

credentials

auth credentials

host

hostname of ftp server (ipAddress / dnsName)

knownHosts

known hosts file to be used when connecting

port

port of communication used by the server

sshConfig

configuration of ssh client

strictHostKeyChecking

sets whether to use strict host key checking.

Attributes

Companion
object
Source
FtpSettings.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
FtpSettings.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait SftpIdentity

Attributes

Source
FtpSettings.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class SslParams(isImplicit: Boolean, pbzs: Long, prot: ProtectionLevel)

Value parameters

isImplicit

// security mode (Implicit/Explicit)

pbzs

// Protection Buffer SiZe default value 0

prot

// data channel PROTection level default value C More informations regarding these settings https://enterprisedt.com/products/edtftpjssl/doc/manual/html/ftpscommands.html

Attributes

Companion
object
Source
FtpSettings.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SslParams

Attributes

Companion
class
Source
FtpSettings.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
SslParams.type
object StubFtp

Attributes

Source
package.scala
Supertypes
class Object
trait Matchable
class Any
Self type
StubFtp.type
object TestFtp

Attributes

Source
TestFtp.scala
Supertypes
class Object
trait Matchable
class Any
Self type
TestFtp.type
sealed abstract class UnsecureFtp(unsafeClient: Client) extends FtpAccessors[Client]

Unsecure Ftp client wrapper

Unsecure Ftp client wrapper

All ftp methods exposed are lifted into ZIO or ZStream. The underlying java client only provides blocking methods, so each call runs with ZIO.attemptBlockingIO.

Attributes

Companion
object
Source
UnsecureFtp.scala
Supertypes
class Object
trait Matchable
class Any
object UnsecureFtp

Attributes

Companion
class
Source
UnsecureFtp.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final case class UnsecureFtpSettings(host: String, port: Int, credentials: PasswordCredentials, binary: Boolean, passiveMode: Boolean, remoteVerificationEnabled: Boolean, proxy: Option[Proxy], sslParams: Option[SslParams], dataTimeout: Option[Duration], defaultTimeout: Option[Duration], keepalive: Option[KeepaliveSettings], controlEncoding: Option[String])

Settings to connect unsecure Ftp server

Settings to connect unsecure Ftp server

Value parameters

binary

specifies the file transfer mode, BINARY or ASCII. Default is ASCII (false)

controlEncoding

character encoding to be used by the FTP control connection, auto-detects UTF-8 if None

credentials

credentials (username and password)

dataTimeout

Sets the timeout to use when reading from the data connection.

defaultTimeout

Sets the default timeout for connections established with these settings, specifically the timeout for the control connection.

host

hostname of ftp server (ipAddress / dnsName)

keepalive

if defined enables TCP keepalive with the provided settings

passiveMode

specifies whether to use passive mode connections. Default is active mode (false)

port

port of communication used by the server

proxy

An optional proxy to use when connecting with these settings

secure

Use FTP over SSL

Attributes

Companion
object
Source
FtpSettings.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
FtpSettings.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Types

Attributes

Source
package.scala

Attributes

Source
package.scala

Attributes

Source
package.scala

Value members

Concrete methods

Attributes

Source
package.scala
def stub(path: Path): Layer[Any, StubFtp]

Attributes

Source
package.scala

Attributes

Source
package.scala