Retrieves the list of names in the current server directory.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Function GetNameList As String()
C#
public string[] GetNameList()

Return Value

An array of names.

Implements

IFtp..::..GetNameList()()()()

Remarks

Represents FTP NLST command.

Actual behaviour of NLST command varies from server to server, because the RFC is not clear in explaining what it should do. Some servers return the names of both files and directories, others return files only or even report error if the current directory is empty. Using GetList is a better choice in most cases.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also