SFTP Client v1.1.1 SFTPClient.Operations.UploadFile View Source

A module that provides functions to upload files to an SFTP server.

Link to this section Summary

Functions

Uploads a file from the file system to the server.

Uploads a file from the file system to the server.Raises when the operation fails.

Link to this section Functions

Link to this function

upload_file(conn, local_path, remote_path) View Source
upload_file(SFTPClient.Conn.t(), String.t(), String.t()) ::
  {:ok, String.t()} | {:error, any()}

Uploads a file from the file system to the server.

Link to this function

upload_file!(conn, local_path, remote_path) View Source
upload_file!(SFTPClient.Conn.t(), String.t(), String.t()) ::
  String.t() | no_return()

Uploads a file from the file system to the server.Raises when the operation fails.