View Source SFTPClient.Operations.WriteFile (SFTP Client v2.1.0)
A module that provides functions to write file contents to an SFTP server.
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.
Functions
@spec write_file(SFTPClient.Conn.t(), Path.t(), binary() | [binary()]) :: :ok | {:error, SFTPClient.error()}
Writes a file to the given path on the connected server.
@spec 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.