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

A module that provides functions to close an open handle pointing to a file or directory on the SFTP server.

Summary

Functions

Closes a handle to an open file or directory on the server.

Closes a handle to an open file or directory on the server. Raises when the operation fails.

Functions

@spec close_handle(SFTPClient.Handle.t()) :: :ok | {:error, SFTPClient.error()}

Closes a handle to an open file or directory on the server.

@spec close_handle!(SFTPClient.Handle.t()) :: :ok | no_return()

Closes a handle to an open file or directory on the server. Raises when the operation fails.