From ac3a611db8d029d4a8447e0487d20f03762f7948 Mon Sep 17 00:00:00 2001 From: Chathulanka Gamage <61736812+cmgchess@users.noreply.github.com> Date: Mon, 6 Jul 2026 16:00:33 +0000 Subject: [PATCH] docs: add missing SftpPathNotFoundException exception documentation for ListDirectory, ListDirectoryAsync --- src/Renci.SshNet/ISftpClient.cs | 2 ++ src/Renci.SshNet/SftpClient.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Renci.SshNet/ISftpClient.cs b/src/Renci.SshNet/ISftpClient.cs index 7b1237bc2..8369266d8 100644 --- a/src/Renci.SshNet/ISftpClient.cs +++ b/src/Renci.SshNet/ISftpClient.cs @@ -813,6 +813,7 @@ public interface ISftpClient : IBaseClient /// is . /// Client is not connected. /// Permission to list the contents of the directory was denied by the remote host. -or- A SSH command was denied by the server. + /// The specified path is invalid, or its directory was not found on the remote host. /// A SSH error where is the message from the remote host. /// The method was called after the client was disposed. IEnumerable ListDirectory(string path, Action? listCallback = null); @@ -829,6 +830,7 @@ public interface ISftpClient : IBaseClient /// is . /// Client is not connected. /// Permission to list the contents of the directory was denied by the remote host. -or- A SSH command was denied by the server. + /// The specified path is invalid, or its directory was not found on the remote host. /// A SSH error where is the message from the remote host. /// The method was called after the client was disposed. IAsyncEnumerable ListDirectoryAsync(string path, CancellationToken cancellationToken); diff --git a/src/Renci.SshNet/SftpClient.cs b/src/Renci.SshNet/SftpClient.cs index 4e554abbf..947139f84 100644 --- a/src/Renci.SshNet/SftpClient.cs +++ b/src/Renci.SshNet/SftpClient.cs @@ -606,6 +606,7 @@ public void SymbolicLink(string path, string linkPath) /// is . /// Client is not connected. /// Permission to list the contents of the directory was denied by the remote host. -or- A SSH command was denied by the server. + /// The specified path is invalid, or its directory was not found on the remote host. /// A SSH error where is the message from the remote host. /// The method was called after the client was disposed. public IEnumerable ListDirectory(string path, Action? listCallback = null) @@ -627,6 +628,7 @@ public IEnumerable ListDirectory(string path, Action? listCallba /// is . /// Client is not connected. /// Permission to list the contents of the directory was denied by the remote host. -or- A SSH command was denied by the server. + /// The specified path is invalid, or its directory was not found on the remote host. /// A SSH error where is the message from the remote host. /// The method was called after the client was disposed. public async IAsyncEnumerable ListDirectoryAsync(string path, [EnumeratorCancellation] CancellationToken cancellationToken)