SFTP Client v1.4.1 SFTPClient.Operations.WriteFile View Source
A module that provides functions to write file contents to 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
write_file(conn, path, data)
View Sourcewrite_file(SFTPClient.Conn.t(), Path.t(), String.t() | [String.t()]) :: :ok | {:error, SFTPClient.error()}
Reads a file from the server, and returns the data as String.
Link to this function
write_file!(conn, path, data)
View Sourcewrite_file!(SFTPClient.Conn.t(), Path.t(), String.t() | [String.t()]) :: :ok | no_return()
Reads a file from the server, and returns the data as String. Raises when the operation fails.