Back to product page

ListDir method


Lists contents of a directory on the server.

Type

Void

Syntax

  • C#
  • VB.NET
public Void ListDir();

public Void ListDir(Stream OutStream);
The ListDir(OutStream) syntax has these parts:
OutStreamOutput Stream where wodSFTP.NET will write contents of the directory.

public Void ListDir(String RemotePath);
The ListDir(RemotePath) syntax has these parts:
RemotePathFull path to directory that should be listed.

public Void ListDir(String RemotePath, Stream OutStream);
The ListDir(RemotePath,OutStream) syntax has these parts:
RemotePathFull path to directory that should be listed.
OutStreamOutput Stream where wodSFTP.NET will write contents of the directory.

public Sub ListDir()

public Sub ListDir(ByVal OutStream As Stream)
The ListDir(OutStream) syntax has these parts:
OutStreamOutput Stream where wodSFTP.NET will write contents of the directory.

public Sub ListDir(ByVal RemotePath As String)
The ListDir(RemotePath) syntax has these parts:
RemotePathFull path to directory that should be listed.

public Sub ListDir(ByVal RemotePath As String, ByVal OutStream As Stream)
The ListDir(RemotePath,OutStream) syntax has these parts:
RemotePathFull path to directory that should be listed.
OutStreamOutput Stream where wodSFTP.NET will write contents of the directory.

Remarks

When working in scripting environments, such as ASP, you are unable to retrieve information returned from, for example, Listitems event. In such cases, you would read the result from ListItem property. It is valid when Done event fires, or in blocking mode after you method finishes.

Platforms

Windows