View Source SFTPClient.Operations.WriteFileChunk (SFTP Client v2.0.1)

A module that provides functions to write chunks of data to a file on an SFTP server.

Summary

Functions

Writes data to the file referenced by handle. The file is to be opened with write or append flag.

Writes data to the file referenced by handle. The file is to be opened with write or append flag. Raises when the operation fails.

Functions

Link to this function

write_file_chunk(handle, data)

View Source
@spec write_file_chunk(SFTPClient.Handle.t(), binary()) ::
  :ok | {:error, SFTPClient.error()}

Writes data to the file referenced by handle. The file is to be opened with write or append flag.

Link to this function

write_file_chunk!(handle, data)

View Source
@spec write_file_chunk!(SFTPClient.Handle.t(), binary()) :: :ok | no_return()

Writes data to the file referenced by handle. The file is to be opened with write or append flag. Raises when the operation fails.