Retrieves the list of names.

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

Syntax

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

Parameters

arguments
Type: System..::..String
Arguments for the NLST command.

Return Value

An array of names.

Implements

IFtp..::..GetNameList(String)

Remarks

Represents FTP NLST command.

Actual behavior 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.

Caution: The meaning of the arguments argument is not defined by RFC and varies from server to server. Some servers interpret it as parameters to ls command, some as a filename, some ignore it and some report an error. Calling this method with arguments other than null is not recommended and will make your code incompatible with many FTP servers.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also