View Source SFTPClient.Operations.Rename (SFTP Client v1.4.8)
A module that provides functions to rename files and directories on an SFTP server.
Link to this section Summary
Functions
Renames a file named old_path
and gives it the name specified by new_path
.
Raises when the operation fails.
Renames a file named old_path
and gives it the name specified by new_path
.
Link to this section Functions
@spec rename!(SFTPClient.Conn.t(), Path.t(), Path.t()) :: :ok | no_return()
Renames a file named old_path
and gives it the name specified by new_path
.
Raises when the operation fails.
@spec rename(SFTPClient.Conn.t(), Path.t(), Path.t()) :: :ok | {:error, SFTPClient.error()}
Renames a file named old_path
and gives it the name specified by new_path
.