SFTP Client v1.4.1 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 Sourcehandle_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.
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.