View Source SFTPClient.Operations.ReadFile (SFTP Client v2.1.0)
A module that provides functions to read file contents from an SFTP server.
Summary
Functions
Reads a file from the server, and returns the data as String.
Reads a file from the server, and returns the data as String. Raises when the operation fails.
Functions
@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.
@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.