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
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Lift unsafe operation that does blocking IO into a ZIO effect. If the operation failed an error will be emitted
Lift unsafe operation that does blocking IO into a ZIO effect. If the operation failed an error will be emitted
Type parameters
- T
-
return value
Value parameters
- f
-
unsafe function to lift
Attributes
- Definition Classes
- Source
- SecureFtp.scala
List of files / directories. If the operation failed, an error will be emitted
List of files / directories. If the operation failed, an error will be emitted
Value parameters
- path
-
absolute path of the directory
Attributes
- Source
- SecureFtp.scala
List of files from a base directory recursively. If the operation failed, an error will be emitted
List of files from a base directory recursively. If the operation failed, an error will be emitted
Value parameters
- path
-
absolute path of the directory
Attributes
- Source
- SecureFtp.scala
Create a directory. If the operation failed, an error will be emitted
Create a directory. If the operation failed, an error will be emitted
Value parameters
- path
-
absolute path of the directory
Attributes
- Source
- SecureFtp.scala
Read a file by using stream. If the operation failed, an error will be emitted
Read a file by using stream. If the operation failed, an error will be emitted
Value parameters
- chunkSize
-
default chunk size is 2048 bytes
- fileOffset
-
optional initial offset in bytes
- path
-
absolute path of a file
Attributes
- Source
- SecureFtp.scala
Renames a file/directory. If the operation failed, an error will be emitted
Renames a file/directory. If the operation failed, an error will be emitted
Value parameters
- newPath
-
absolute path of the file/directory destination.
- oldPath
-
absolute path of the file/directory to rename
Attributes
- Source
- SecureFtp.scala
Delete a file on a server. If the operation failed, an error will be emitted
Delete a file on a server. If the operation failed, an error will be emitted
Value parameters
- path
-
absolute path of the file
Attributes
- Source
- SecureFtp.scala
Delete a directory. If the operation failed, an error will be emitted
Delete a directory. If the operation failed, an error will be emitted
Value parameters
- path
-
absolute path of the directory
Attributes
- Source
- SecureFtp.scala
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
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
Value parameters
- path
-
absolute path of the file
Attributes
- Source
- SecureFtp.scala
Save a data stream. If the operation failed, an error will be emitted
Save a data stream. If the operation failed, an error will be emitted
Type parameters
- R
-
environment required by the specified stream source. The upload itself needs no extra environment
Value parameters
- path
-
absolute path of file to store
- source
-
data stream to store
Attributes
- Source
- SecureFtp.scala