You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Renci.SshNet/ISftpClient.cs
+14
Original file line number
Diff line number
Diff line change
@@ -358,6 +358,20 @@ public interface ISftpClient : IBaseClient
358
358
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
359
359
voidChangeDirectory(stringpath);
360
360
361
+
/// <summary>
362
+
/// Asynchronously requests to change the current working directory to the specified path.
363
+
/// </summary>
364
+
/// <param name="path">The new working directory.</param>
365
+
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
366
+
/// <returns>A <see cref="Task"/> that tracks the asynchronous change working directory request.</returns>
367
+
/// <exception cref="ArgumentNullException"><paramref name="path"/> is <see langword="null"/>.</exception>
368
+
/// <exception cref="SshConnectionException">Client is not connected.</exception>
369
+
/// <exception cref="SftpPermissionDeniedException">Permission to change directory denied by remote host. <para>-or-</para> A SSH command was denied by the server.</exception>
370
+
/// <exception cref="SftpPathNotFoundException"><paramref name="path"/> was not found on the remote host.</exception>
371
+
/// <exception cref="SshException">A SSH error where <see cref="Exception.Message"/> is the message from the remote host.</exception>
372
+
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
Copy file name to clipboardExpand all lines: src/Renci.SshNet/SftpClient.cs
+27
Original file line number
Diff line number
Diff line change
@@ -305,6 +305,33 @@ public void ChangeDirectory(string path)
305
305
_sftpSession.ChangeDirectory(path);
306
306
}
307
307
308
+
/// <summary>
309
+
/// Asynchronously requests to change the current working directory to the specified path.
310
+
/// </summary>
311
+
/// <param name="path">The new working directory.</param>
312
+
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
313
+
/// <returns>A <see cref="Task"/> that tracks the asynchronous change working directory request.</returns>
314
+
/// <exception cref="ArgumentNullException"><paramref name="path"/> is <see langword="null"/>.</exception>
315
+
/// <exception cref="SshConnectionException">Client is not connected.</exception>
316
+
/// <exception cref="SftpPermissionDeniedException">Permission to change directory denied by remote host. <para>-or-</para> A SSH command was denied by the server.</exception>
317
+
/// <exception cref="SftpPathNotFoundException"><paramref name="path"/> was not found on the remote host.</exception>
318
+
/// <exception cref="SshException">A SSH error where <see cref="Exception.Message"/> is the message from the remote host.</exception>
319
+
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
0 commit comments