Back to product page

ListNames method


Lists contents of a directory on the server, and returns only file/folder names.

Type

Void

Syntax

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

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

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

public Void ListNames(String RemotePath, Stream OutStream);
The ListNames(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 ListNames()

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

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

public Sub ListNames(ByVal RemotePath As String, ByVal OutStream As Stream)
The ListNames(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