This is an old revision of the document!
Session.ListDirectory Method
Lists the contents of specified remote directory.
This feature will be available only with the next release.
Syntax
public List<RemoteFileInfo> ListDirectory(string path)
Advertisement
Parameters
| Name | Description |
|---|---|
| string path | Full path to remote directory to be read. |
Return Value
Collection of RemoteFileInfo.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | Session is not opened. |
| SessionLocalException | Error communicating with winscp.com. See the exception documentation for details. |
| SessionRemoteException | Session has failed. Listing of remote directory has failed. See the exception documentation for details. |
| TimeoutException | Timeout waiting for winscp.com to respond. |