This is an old revision of the document!

Session.ListDirectory Method

Lists the contents of specified remote directory.

Syntax

public List<RemoteFileInfo> ListDirectory(string path)

Advertisement

Parameters

Name Description
string path Full path to remote directory to be read.

Return Value

List of RemoteFileInfo.

Exceptions

Exception Condition
InvalidOperationException Session is not opened.
SessionException Error communicating with winscp.com.
Session has failed.
Listing of remote directory has failed.
TimeoutException Timeout waiting for winscp.com to respond.

Last modified: by martin