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
@@ -743,6 +775,64 @@ public bool Exists(string path)
743
775
}
744
776
}
745
777
778
+
/// <summary>
779
+
/// Checks whether file or directory exists.
780
+
/// </summary>
781
+
/// <param name="path">The path.</param>
782
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to observe.</param>
783
+
/// <returns>
784
+
/// A <see cref="Task{T}"/> that represents the exists operation.
785
+
/// The task result contains <see langword="true"/> if directory or file exists; otherwise <see langword="false"/>.
786
+
/// </returns>
787
+
/// <exception cref="ArgumentException"><paramref name="path"/> is <see langword="null"/> or contains only whitespace characters.</exception>
788
+
/// <exception cref="SshConnectionException">Client is not connected.</exception>
789
+
/// <exception cref="SftpPermissionDeniedException">Permission to perform the operation was denied by the remote host. <para>-or-</para> A SSH command was denied by the server.</exception>
790
+
/// <exception cref="SshException">A SSH error where <see cref="Exception.Message"/> is the message from the remote host.</exception>
791
+
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
0 commit comments