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/SftpClient.cs
+58
Original file line number
Diff line number
Diff line change
@@ -743,6 +743,64 @@ public bool Exists(string path)
743
743
}
744
744
}
745
745
746
+
/// <summary>
747
+
/// Checks whether file or directory exists.
748
+
/// </summary>
749
+
/// <param name="path">The path.</param>
750
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to observe.</param>
751
+
/// <returns>
752
+
/// A <see cref="Task{T}"/> that represents the exists operation.
753
+
/// The task result contains <see langword="true"/> if directory or file exists; otherwise <see langword="false"/>.
754
+
/// </returns>
755
+
/// <exception cref="ArgumentException"><paramref name="path"/> is <see langword="null"/> or contains only whitespace characters.</exception>
756
+
/// <exception cref="SshConnectionException">Client is not connected.</exception>
757
+
/// <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>
758
+
/// <exception cref="SshException">A SSH error where <see cref="Exception.Message"/> is the message from the remote host.</exception>
759
+
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
0 commit comments