SFTP Client v1.3.3 SFTPClient.Operations.ReadFile View Source

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.

Reads a file from the server, and returns the data as String. Raises when the operation fails.

Link to this section Functions

Link to this function

read_file(conn, path) View Source
read_file(SFTPClient.Conn.t(), Path.t()) ::
  {:ok, binary()} | {:error, SFTPClient.error()}

Reads a file from the server, and returns the data as String.

Link to this function

read_file!(conn, path) View Source
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.