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

A function which converts all errors that can occur when an SFTP operation fails into a matching exception struct.

Link to this function

may_bang!(result) View Source
may_bang!(:ok | {:ok | :error, any()}) :: any() | no_return()

Converts the result of a non-bang function so that the result is returned or an exception is raised on error.

Link to this function

sftp_adapter() View Source
sftp_adapter() :: module()

Gets the configured SFTP adapter. Defaults to the Erlang :ssh_sftp module.

Link to this function

ssh_adapter() View Source
ssh_adapter() :: module()

Gets the configured SSH adapter. Defaults to the Erlang :ssh module.