Retrieves list of files in remote directory.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
Parameters
- path
- Type:
System String
The path.
- listCallback (Optional)
- Type:
System Action
Int32
The list callback.
Return Value
List of directory entriesExceptions
| Exception | Condition |
|---|---|
| path is null. | |
| Renci.SshNet.Common SshConnectionException | Client is not connected. |
| Renci.SshNet.Common SftpPermissionDeniedException | Permission to list the contents of the directory was denied by the remote host. -or- A SSH command was denied by the server. |
| Renci.SshNet.Common SshException | A SSH error where |
See Also