Sftp.RenameAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9119)
RenameAsync(String, String, Object)
Begins asynchronous Rename operation. Renames or moves a file or directory on the server.
Declaration
public Task RenameAsync(string fromPath, string toPath, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | fromPath | The pathname of the remote file or directory to be renamed. |
String | toPath | The pathname to rename the file or directory to. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |