Retrieves the list of files and directories in the specified remote directory, or a list of files matching the specified mask.

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

Syntax

Visual Basic
Public Function GetList ( _
	path As String _
) As SftpItemCollection
C#
public SftpItemCollection GetList(
	string path
)

Parameters

path
Type: System..::..String
The path of the remote directory, or null for current directory. File wildcards masks (such as *.txt) are accepted as well.

Return Value

Collection of SftpItem values.

Remarks

Argument is taken case sensitive if ServerType equals to Unix; case insensitive otherwise.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also