trait FtpAccessors[+A] extends AnyRef
- Alphabetic
- By Inheritance
- FtpAccessors
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def execute[T](f: (A) => T): ZIO[Blocking, IOException, T]
Lift unsafe operation that does blocking IO into a pure value.
Lift unsafe operation that does blocking IO into a pure value. If the operation failed an error will be emitted
- T
return value
- f
unsafe function to lift
- abstract def ls(path: String): ZStream[Blocking, IOException, FtpResource]
List of files / directories.
List of files / directories. If the operation failed, an error will be emitted
- path
absolute path of the directory
- abstract def lsDescendant(path: String): ZStream[Blocking, IOException, FtpResource]
List of files from a base directory recursively.
List of files from a base directory recursively. If the operation failed, an error will be emitted
- path
absolute path of the directory
- abstract def mkdir(path: String): ZIO[Blocking, IOException, Unit]
Create a directory.
Create a directory. If the operation failed, an error will be emitted
- path
absolute path of the directory
- abstract def readFile(path: String, chunkSize: Int = 2048): ZStream[Blocking, IOException, Byte]
Read a file by using stream.
Read a file by using stream. If the operation failed, an error will be emitted
- path
absolute path of a file
- chunkSize
default chunk size is 2048 bytes
- abstract def rm(path: String): ZIO[Blocking, IOException, Unit]
Delete a file on a server.
Delete a file on a server. If the operation failed, an error will be emitted
- path
absolute path of the file
- abstract def rmdir(path: String): ZIO[Blocking, IOException, Unit]
Delete a directory.
Delete a directory. If the operation failed, an error will be emitted
- path
absolute path of the directory
- abstract def stat(path: String): ZIO[Blocking, IOException, Option[FtpResource]]
Check existence of a file.
Check existence of a file. If the file doesn't exist, the operation will succeed by returning an empty ftp resource If the operation failed an error will be emitted
- path
absolute path of the file
- abstract def upload[R <: Blocking](path: String, source: ZStream[R, Throwable, Byte]): ZIO[R, IOException, Unit]
Save a data stream.
Save a data stream. If the operation failed, an error will be emitted
- R
environment of the specified stream source, required to extend Blocking
- path
absolute path of file to store
- source
data stream to store
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()