View Source SFTPClient.Operations.ReadFile (SFTP Client v1.4.8)
A module that provides functions to read file contents from an SFTP server.
Link to this section Summary
Functions
Reads a file from the server, and returns the data as String. Raises when the operation fails.
Reads a file from the server, and returns the data as String.
Link to this section Functions
@spec read_file!(SFTPClient.Conn.t(), Path.t()) :: binary() | no_return()
Reads a file from the server, and returns the data as String. Raises when the operation fails.
@spec read_file(SFTPClient.Conn.t(), Path.t()) :: {:ok, binary()} | {:error, SFTPClient.error()}
Reads a file from the server, and returns the data as String.