SFTP Client v1.4.0 SFTPClient.OperationUtil View Source
A utility module that intends to be imported by operation modules.
Link to this section Summary
Functions
A function which converts all errors that can occur when an SFTP operation fails into a matching exception struct.
Converts the result of a non-bang function so that the result is returned or an exception is raised on error.
Gets the configured SFTP adapter. Defaults to the Erlang :ssh_sftp
module.
Gets the configured SSH adapter. Defaults to the Erlang :ssh
module.
Link to this section Functions
handle_error(error)
View Source
handle_error(any()) ::
SFTPClient.ConnError.t()
| SFTPClient.InvalidOptionError.t()
| SFTPClient.OperationError.t()
handle_error(any()) :: SFTPClient.ConnError.t() | SFTPClient.InvalidOptionError.t() | SFTPClient.OperationError.t()
A function which converts all errors that can occur when an SFTP operation fails into a matching exception struct.
may_bang!(result) View Source
Converts the result of a non-bang function so that the result is returned or an exception is raised on error.
sftp_adapter()
View Source
sftp_adapter() :: module()
sftp_adapter() :: module()
Gets the configured SFTP adapter. Defaults to the Erlang :ssh_sftp
module.
ssh_adapter()
View Source
ssh_adapter() :: module()
ssh_adapter() :: module()
Gets the configured SSH adapter. Defaults to the Erlang :ssh
module.