SFTPClient.Operations.WriteFile (SFTP Client v1.4.6) View Source

A module that provides functions to write file contents to an SFTP server.

Link to this section Summary

Functions

Writes a file to the given path on the connected server.

Writes a file to the given path on the connected server. Raises when the operation fails.

Link to this section Functions

Link to this function

write_file(conn, path, data)

View Source

Specs

write_file(SFTPClient.Conn.t(), Path.t(), binary() | [binary()]) ::
  :ok | {:error, SFTPClient.error()}

Writes a file to the given path on the connected server.

Link to this function

write_file!(conn, path, data)

View Source

Specs

write_file!(SFTPClient.Conn.t(), Path.t(), String.t() | [String.t()]) ::
  :ok | no_return()

Writes a file to the given path on the connected server. Raises when the operation fails.